Skip to content

Commit

Permalink
store tag name in github env var
Browse files Browse the repository at this point in the history
  • Loading branch information
agl-alexglopez committed Jul 15, 2024
2 parents afa9df3 + c751d04 commit ab2fb25
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ jobs:

- name: Create Release Zip
run: |
TAG=$(git describe --tags --abbrev=0)
git archive --format=zip --output=str_view-${TAG}.zip release
echo "ZIP_FILE=str_view-${TAG}.zip" >> $GITHUB_ENV
VERSION=$(git describe --tags --abbrev=0)
echo "TAG=$VERSION" >> $GITHUB_ENV
git archive --format=zip --output=str_view-${VERSION}.zip release
echo "ZIP_FILE=str_view-${VERSION}.zip" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${TAG}
release_name: ${TAG}
tag_name: ${{ env.TAG }}
release_name: ${{ env.TAG }}
body: |
Release Notes:
draft: false
Expand Down

0 comments on commit ab2fb25

Please sign in to comment.