Skip to content

Commit

Permalink
package script
Browse files Browse the repository at this point in the history
  • Loading branch information
nokotan committed Mar 12, 2023
1 parent 947901b commit 969bd09
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,32 @@ jobs:
uses: actions/download-artifact@v2
with:
name: wasm-playground-app-bundle
path: dist

- run: cd dist && tar -czvf ../wasm-playground.tar.gz .

- uses: actions/create-release@v1
if: ${{ contains(github.ref, 'tags/v') }}
id: create-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}

- uses: actions/upload-release-asset@v1
if: ${{ contains(github.ref, 'tags/v') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: wasm-playground.tar.gz
asset_name: wasm-playground.tar.gz
asset_content_type: application/gzip

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
publish_dir: dist
keep_files: true

0 comments on commit 969bd09

Please sign in to comment.