Repository navigation
58 lines (48 loc) · 1.63 KB
/
Copy pathpages.yml
File metadata and controls
58 lines (48 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Deploy browser demo to GitHub Pages
# Builds the Rust → WebAssembly core and publishes the fully client-side demo
# (samples/pqfe-web) to GitHub Pages. The .pqfe cryptography runs in the browser; no
# server is involved.
on:
push:
branches: [main]
paths:
- 'samples/pqfe-wasm/**'
- 'samples/pqfe-web/**'
- '.github/workflows/pages.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment; cancel in-progress runs for the same ref.
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Rust (stable) + wasm target
run: |
rustup toolchain install stable --profile minimal
rustup target add wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build the WebAssembly core
working-directory: samples/pqfe-wasm
run: wasm-pack build --target web --release --out-dir ../pqfe-web/pkg
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: samples/pqfe-web
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@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0