Skip to content

Commit

Permalink
Try deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KaffinPX committed Jan 27, 2025
1 parent 3be34ca commit 8bad399
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Tests
on: [ push, pull_request ]

jobs:
Test:
test:
name: Test
runs-on: ubuntu-latest
steps:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and upload assets

on:
release:
types: [ published ]


jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.31
- name: Install WASM binaries from aspectron.org
run: wget -O wasm.zip https://kaspa.aspectron.org/nightly/downloads/kaspa-wasm32-sdk-2024-09-13.zip
- name: Extract WASM binaries
run: |
7z x wasm.zip
mkdir ./wasm
mv ./kaspa-wasm32-sdk/web/kaspa/* ./wasm
- name: Install Dependencies
run: bun install
- name: Build Kaspian
run: bun run build
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "dist/"
asset_name: "unpacked-extension"

0 comments on commit 8bad399

Please # to comment.