Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "Upload build artifacts"
type: boolean
default: false
upload-webui-artifact:
description: "Upload webui build artifact for pages deployment"
type: boolean
default: false

env:
RUST_TOOLCHAIN: nightly-2025-10-23
Expand Down Expand Up @@ -90,6 +94,12 @@ jobs:
packages/wasm-solana/js/wasm/
retention-days: 1

- name: Upload webui artifact
if: inputs.upload-webui-artifact
uses: actions/upload-pages-artifact@v3
with:
path: packages/webui/dist

test:
name: "Test ${{ matrix.package }}"
needs: build
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/deploy-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Deploy to GitHub Pages"

on:
push:
branches:
- gh-pages
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
uses: ./.github/workflows/build-and-test.yaml
with:
upload-webui-artifact: true

deploy:
name: "Deploy"
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4