Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyFault committed Oct 21, 2023
1 parent 4dc9300 commit 0fbd929
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 41 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,43 +21,3 @@ jobs:
with:
name: FastAsyncVoxelSniper-SNAPSHOT
path: build/libs/*-SNAPSHOT.jar
- name: Determine release status
if: ${{ runner.os == 'Linux' }}
run: |
if [ "$(./gradlew properties | awk '/^version:/ { print $2; }' | grep '\-SNAPSHOT')" ]; then
echo "STATUS=snapshot" >> $GITHUB_ENV
else
echo "STATUS=release" >> $GITHUB_ENV
fi
- name: Publish Release
if: ${{ runner.os == 'Linux' && env.STATUS == 'release' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
run: ./gradlew publishToSonatype closeSonatypeStagingRepository --info
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
- name: Publish Snapshot
if: ${{ runner.os == 'Linux' && env.STATUS != 'release' && github.event_name == 'push' && github.ref == 'refs/heads/cloud-beta' }}
run: ./gradlew publishToSonatype
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
- name: Publish javadocs
if: ${{ runner.os == 'Linux' && env.STATUS == 'release' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: 'build/docs/javadoc'
destination-github-username: 'IntellectualSites'
destination-repository-name: 'fastasyncvoxelsniper-javadocs'
user-email: ${{ secrets.USER_EMAIL }}
target-branch: main
- name: Publish to GitHub actions
if: ${{ runner.os == 'Linux' && env.STATUS == 'release' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
uses: AButler/upload-release-assets@v2.0
with:
files: build/libs/fastasyncvoxelsniper-${{ github.event.release.tag_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.release.tag_name }}
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ configurations.all {
}

group = "com.intellectualsites.fastasyncvoxelsniper"
version = "3.0.0-SNAPSHOT"
version = "3.0.0-SNAPSHOT-2"

bukkit {
name = "FastAsyncVoxelSniper"
Expand Down Expand Up @@ -127,6 +127,7 @@ javaComponent.withVariantsFromConfiguration(configurations["shadowRuntimeElement
skip()
}

/*
signing {
if (!version.toString().endsWith("-SNAPSHOT")) {
val signingKey: String? by project
Expand All @@ -136,6 +137,7 @@ signing {
sign(publishing.publications)
}
}
*/

publishing {
publications {
Expand Down

0 comments on commit 0fbd929

Please sign in to comment.