Skip to content

Commit

Permalink
update envs
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski committed Sep 15, 2024
1 parent 8c8fbaa commit 8e1812d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
Binaries:
runs-on: ${{ matrix.os }}
outputs:
version-tag: ${{ steps.version_tag.outputs.VERSION_TAG }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -54,6 +56,8 @@ jobs:
Draft-Release:
runs-on: ubuntu-latest
needs: Binaries
env:
VERSION_TAG: ${{ needs.Binaries.outputs.version-tag }}
steps:
- uses: actions/checkout@v3

Expand All @@ -63,10 +67,9 @@ jobs:
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION_TAG: ${{ steps.version_tag.outputs.VERSION_TAG }}
with:
tag_name: $VERSION_TAG
release_name: TDM $VERSION_TAG
tag_name: ${{ env.VERSION_TAG }}
release_name: TDM ${{ env.VERSION_TAG }}
draft: ${{ github.ref_name != 'refs/heads/develop'}}
prerelease: ${{ github.ref_name == 'refs/heads/develop'}}

Expand All @@ -79,9 +82,8 @@ jobs:
- name: Upload Release Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION_TAG: ${{ steps.version_tag.outputs.VERSION_TAG }}
run: |
for asset in dist/tdmgr/*; do
echo "Uploading asset: $asset"
gh release upload $VERSION_TAG "$asset" --clobber
gh release upload ${{ env.VERSION_TAG }} "$asset" --clobber
done

0 comments on commit 8e1812d

Please sign in to comment.