diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b21fbe..17f880b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,10 +26,14 @@ jobs: distribution: 'zulu' java-version: '21' - run: | - sbt stage astGenDlTask assembly createDistribution publish + sbt stage astGenDlTask assembly createDistribution sha512sum target/atom.zip > target/atom.zip.sha512 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: sbt publish + if: startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload atom to ghcr run: | cd target