diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c936385..e410b3a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -149,12 +149,22 @@ jobs: run: ./bin/package ${{github.ref}} ${{matrix.os}} ${{ matrix.target }} shell: bash - - name: Publish + - name: Publish Archive uses: softprops/action-gh-release@v0.1.5 if: startsWith(github.ref, 'refs/tags/') with: draft: false files: ${{ steps.package.outputs.archive }} - prerelease: ${{ steps.is_prerelease.outputs.value }} != 'release' + prerelease: ${{ steps.ref-type.outputs.value != 'release' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish Changelog + uses: softprops/action-gh-release@v0.1.5 + if: startsWith(github.ref, 'refs/tags/') && matrix.target == 'x86_64-unknown-linux-musl' + with: + draft: false + files: CHANGELOG.md + prerelease: ${{ steps.ref-type.outputs.value != 'release' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}