-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Tests | |
on: [ push, pull_request ] | ||
|
||
jobs: | ||
Test: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |