Skip to content

Commit

Permalink
chore: save filename between steps
Browse files Browse the repository at this point in the history
  • Loading branch information
teebszet committed Jul 4, 2023
1 parent 0db851c commit a272c3d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ jobs:
# - name: Test
# run: npm test --passWithNoTests
- name: Create Archive
run: echo ${{ github.ref_name }} | sed 's/\//-/' | xargs -I {} zip -r xverse-extension-{}.zip ./build; zip -r xverse-extension-{}.zip build
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
- name: Upload Archive
uses: actions/upload-artifact@v3
with:
name: release-build
path: xverse-extension-${{ github.ref_name }}.zip
path: ${{ steps.create-archive.output.FILENAME }}

0 comments on commit a272c3d

Please sign in to comment.