Skip to content

Commit

Permalink
chore: use save-filename step
Browse files Browse the repository at this point in the history
  • Loading branch information
teebszet committed Jul 4, 2023
1 parent a272c3d commit eb97eef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ jobs:
run: npm run build --if-present
# - name: Test
# run: npm test --passWithNoTests
- name: Save Filename
id: save-filename
run: |
echo "FILENAME=xverse-extension.$(echo ${{github.ref_name}}| sed 's/\//-/').$(git rev-parse --short ${{ github.sha }}).zip" >> $GITHUB_OUTPUT
- name: Create Archive
id: create-archive
run: |
echo "FILENAME=xverse-extension.$(echo ${{github.ref_name}}| sed 's/\//-/').$(git rev-parse --short ${{ github.sha }}).zip" >> $GITHUB_OUTPUT
zip -r ${{ steps.create-archive.output.FILENAME }} ./build
zip -r ${{ steps.save-filename.output.FILENAME }} ./build
- name: Upload Archive
uses: actions/upload-artifact@v3
with:
name: release-build
path: ${{ steps.create-archive.output.FILENAME }}
path: ${{ steps.save-filename.output.FILENAME }}

0 comments on commit eb97eef

Please sign in to comment.