-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.1 KB
/
web.yml
File metadata and controls
55 lines (44 loc) · 1.1 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
name: Web
on:
push:
branches: ["*"]
pull_request:
workflow_dispatch:
permissions:
pages: write
id-token: write
actions: write
jobs:
build:
runs-on: ubuntu-22.04
name: Wasm
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build using docker
id: build
run: |
docker buildx build . -f dist/web.Dockerfile --progress=plain --output out
- name: Fix permissions
run: |
chmod -c -R +rX "out/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload artifacts to pages
uses: actions/upload-pages-artifact@v3
with:
path: out/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
name: GitHub Pages
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' && github.event.repository.fork == false }}
needs: build
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4