Skip to content

Merge pull request #21 from ArthurHeymans/sunxi #7

Merge pull request #21 from ArthurHeymans/sunxi

Merge pull request #21 from ArthurHeymans/sunxi #7

Workflow file for this run

name: Deploy web to GitHub Pages
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build WASM with Trunk
run: nix develop --command trunk build --release
working-directory: crates/rflasher-wasm
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: crates/rflasher-wasm/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4