From 1742cf0e127e4525135a7c398600ac9ce8650237 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Fri, 9 Jul 2021 19:58:35 -0400 Subject: [PATCH] Actually fix release tagging and publish changelog with releases (#901) --- .github/workflows/build.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 }}