diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7131c50..fdce69c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,6 @@ name: Release assembly and publish on: push: - branches: [ release ] tags: - v* @@ -12,21 +11,23 @@ jobs: defaults: run: working-directory: kssm - + steps: - uses: actions/checkout@v2 - + with: + ref: release + - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - + - name: Grant execute permission for gradlew run: chmod +x ./gradlew - + - name: Build and check with Gradle run: ./gradlew build - + - name: Publish to Maven env: BINTRAY_USER: ${{ secrets.BINTRAY_USER }} @@ -35,7 +36,7 @@ jobs: BINTRAY_GPG_PASSWORD: ${{ secrets.BINTRAY_GPG_PASSWORD }} BINTRAY_OSS_PASSWORD: ${{ secrets.BINTRAY_OSS_PASSWORD }} run: ./gradlew bintrayUpload - + - name: Publish to GitHub Releases uses: fnkr/github-action-ghr@v1 if: startsWith(github.ref, 'refs/tags/') @@ -43,4 +44,3 @@ jobs: GHR_COMPRESS: xz GHR_PATH: kssm/ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - diff --git a/kssm/build.gradle b/kssm/build.gradle index 9766631..edaaa16 100644 --- a/kssm/build.gradle +++ b/kssm/build.gradle @@ -18,7 +18,7 @@ ext { kotlinSourceDir = 'src/main/kotlin' resourcesDir = 'src/main/resources' - projectVersion = '1.0.1' + projectVersion = '1.0.3' projectGroup = 'me.angrybyte' VERSION_NAME = projectVersion // Needed for 'bintrayUpload' task