Skip to content

Commit

Permalink
fix: Fix tag extraction logic in release-source-archive.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzojive committed Sep 28, 2024
1 parent 6d2624b commit 1a562ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-source-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
# GITHUB_REF: "For workflows triggered by release, this is the release tag created."
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
- run: git archive $GITHUB_REF -o "grpc-web-source-${GITHUB_REF}.tar.gz"
- run: gh release upload ${GITHUB_REF} "grpc-web-source-${GITHUB_REF}.tar.gz"
- run: git archive $GITHUB_REF -o "grpc-web-source-${TAG}.tar.gz"
- run: gh release upload ${TAG} "grpc-web-source-${TAG}.tar.gz"
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{github.ref_name}}

0 comments on commit 1a562ce

Please sign in to comment.