Skip to content

Commit

Permalink
ci: add venus-data.zip asset
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbosma committed Nov 2, 2023
1 parent 6cf3754 commit 4e068c0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ jobs:
REACT_APP_ENABLE_LANG_OVERRIDE: false
- name: Archive bundle
if: steps.check_tag.outputs.match == 'true'
run: tar --transform='s/dist/www\/app/' -zcvf venus-html5-app.tar.gz dist/
run: |
- tar --transform='s/dist/www\/app/' -zcvf venus-html5-app.tar.gz dist/
- tar -xf venus-html5-app.tar.gz && zip -r venus-data.zip www/
- name: Create Release
id: create_release
if: steps.check_tag.outputs.match == 'true'
Expand All @@ -82,7 +84,7 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- name: Upload Release Archive
- name: Upload venus-html5-app.tar.gz
if: steps.check_tag.outputs.match == 'true'
uses: actions/[email protected]
env:
Expand All @@ -91,4 +93,14 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./venus-html5-app.tar.gz
asset_name: venus-html5-app.tar.gz
asset_content_type: application/zip
- name: Upload venus-data.zip
if: steps.check_tag.outputs.match == 'true'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./venus-data.zip
asset_name: venus-data.zip
asset_content_type: application/zip

0 comments on commit 4e068c0

Please sign in to comment.