From 26b491ed09e3e7a81905d948bfa61e0d84d4ce26 Mon Sep 17 00:00:00 2001 From: John Ky Date: Sun, 14 Mar 2021 20:36:24 +1100 Subject: [PATCH] Release support --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a89e711..37716d9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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 @@ -231,6 +233,8 @@ jobs: runs-on: ${{ matrix.os }} + if: ${{ needs.check.outputs.tag != '' }} + strategy: fail-fast: false matrix: