Skip to content

Commit

Permalink
ci: fix CD
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Nov 6, 2022
1 parent bcd4fdb commit 7f46a34
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,21 @@ jobs:
submodules: recursive
fetch-depth: 0

- name: Draft Release
- name: Prepare Tag
id: tag
if: fromJson(matrix.target).goos == 'linux' && startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_MODULE_KEY }}
if: startsWith(github.ref, 'refs/tags/')
run: |
VERSION="${GITHUB_REF##refs/tags/}"
echo "Found Tag: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
gh release create ${VERSION} -d
shell: bash

- name: Draft Release
if: fromJson(matrix.target).goos == 'linux' && startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_MODULE_KEY }}
run: |
gh release create ${{ steps.tag.outputs.version }} -d
shell: bash

- name: Cache Build Caches
Expand Down

0 comments on commit 7f46a34

Please sign in to comment.