Skip to content

Commit deb3d49

Browse files
committed
Deploy pages
1 parent 8e3d493 commit deb3d49

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/pages.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build GH Pages
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions-rust-lang/setup-rust-toolchain@v1
13+
- name: Install wasm-pack
14+
run: cargo install wasm-pack
15+
- name: Build
16+
run: cd fontspector-web; wasm-pack build
17+
- name: Build web site
18+
run: |
19+
cd fontspector-web; www
20+
npm install
21+
npm run build
22+
- name: Upload
23+
uses: actions/[email protected]
24+
with:
25+
path: docs
26+
deploy:
27+
needs: build
28+
permissions:
29+
pages: write # to deploy to Pages
30+
id-token: write # to verify the deployment originates from an appropriate source
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)