Actually fix release tagging and publish changelog with releases (#901)

This commit is contained in:
Casey Rodarmor 2021-07-09 19:58:35 -04:00 committed by GitHub
parent a415d1bdc1
commit 1742cf0e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,12 +149,22 @@ jobs:
run: ./bin/package ${{github.ref}} ${{matrix.os}} ${{ matrix.target }} run: ./bin/package ${{github.ref}} ${{matrix.os}} ${{ matrix.target }}
shell: bash shell: bash
- name: Publish - name: Publish Archive
uses: softprops/action-gh-release@v0.1.5 uses: softprops/action-gh-release@v0.1.5
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
draft: false draft: false
files: ${{ steps.package.outputs.archive }} 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: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}