Skip to content

Commit

Permalink
Remove unnecessary debugging output and reorder build steps to fix is…
Browse files Browse the repository at this point in the history
…sue where release artifacts aren't added to GitHub release.
  • Loading branch information
charleskorn committed Feb 22, 2021
1 parent 5be2bde commit 0df2ac1
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit 0df2ac1

Please sign in to comment.