From 0df2ac1c8ff6e4ce27636e482b852a1265d6579b Mon Sep 17 00:00:00 2001 From: Charles Korn Date: Mon, 22 Feb 2021 20:31:45 +1100 Subject: [PATCH] Remove unnecessary debugging output and reorder build steps to fix issue where release artifacts aren't added to GitHub release. --- .github/workflows/build.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f78f338f..125e0117 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,9 +48,6 @@ jobs: GPG_KEY_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} if: github.repository == 'charleskorn/kaml' && github.ref == 'refs/heads/main' && github.event_name == 'push' - - name: Debug release contents - run: tree -R build - - name: Publish snapshot run: ./batect publishSnapshot env: @@ -59,17 +56,6 @@ jobs: GPG_KEY_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} if: github.repository == 'charleskorn/kaml' && github.ref == 'refs/heads/main' && github.event_name == 'push' - - name: Publish release - run: ./batect publishRelease - env: - OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - GPG_KEY_RING: ${{ secrets.GPG_KEY_RING }} - GPG_KEY_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} - if: github.repository == 'charleskorn/kaml' && startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' - - - name: Debug release contents - run: tree -R build - - name: Create GitHub release uses: softprops/action-gh-release@v1 with: @@ -80,6 +66,14 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} if: github.repository == 'charleskorn/kaml' && startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' + - name: Publish release + run: ./batect publishRelease + env: + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + GPG_KEY_RING: ${{ secrets.GPG_KEY_RING }} + GPG_KEY_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} + if: github.repository == 'charleskorn/kaml' && startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' + - name: Stop Gradle daemon run: ./gradlew --stop