Skip to content

Commit

Permalink
Release support
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Mar 14, 2021
1 parent 13f0d8e commit 26b491e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ jobs:
release:
needs: [build, check]
runs-on: ubuntu-latest

if: ${{ needs.check.outputs.tag != '' }}

outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}

Expand Down Expand Up @@ -220,8 +222,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ needs.check.outputs.tag }}
release_name: Release ${{ needs.check.outputs.tag }}
body: Undocumented
draft: true
prerelease: false
Expand All @@ -231,6 +233,8 @@ jobs:

runs-on: ${{ matrix.os }}

if: ${{ needs.check.outputs.tag != '' }}

strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 26b491e

Please sign in to comment.