From fecb686d9217600ee23b41b8092d178671543bb0 Mon Sep 17 00:00:00 2001 From: Milos Marinkovic Date: Sun, 12 Jul 2020 20:00:07 +0200 Subject: [PATCH 1/3] Create publish.yml --- .github/workflows/publish.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..caedf20 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,46 @@ +name: Release assembly and publish + +on: + push: + branches: [ release ] + tags: + - v* + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: kssm + + steps: + - uses: actions/checkout@v2 + + - 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 }} + BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }} + BINTRAY_OSS_USER: ${{ secrets.BINTRAY_OSS_USER }} + 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/') + env: + GHR_COMPRESS: xz + GHR_PATH: kssm/ + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + From 2593177a1ad8aa9aaea1d20959c0692cc68fe08a Mon Sep 17 00:00:00 2001 From: Milos Marinkovic Date: Sun, 12 Jul 2020 20:01:36 +0200 Subject: [PATCH 2/3] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index caedf20..7131c50 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ on: - v* jobs: - build: + release: runs-on: ubuntu-latest defaults: run: From e1a96733b8f47aa14e40e6d11f14c3177313ca95 Mon Sep 17 00:00:00 2001 From: Milos Marinkovic Date: Sun, 12 Jul 2020 20:03:11 +0200 Subject: [PATCH 3/3] Update project version to 1.0.1 (to publish) --- kssm/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kssm/build.gradle b/kssm/build.gradle index 66f1bcd..9766631 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.0' + projectVersion = '1.0.1' projectGroup = 'me.angrybyte' VERSION_NAME = projectVersion // Needed for 'bintrayUpload' task