-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (59 loc) · 2.01 KB
/
deploy.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
on:
workflow_dispatch:
repository_dispatch:
types:
- deploy
name: website
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: wipplelang/wipple
- run: |
rustup toolchain install stable --profile minimal
rustup target add wasm32-unknown-unknown
- uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "0.4.32"
- uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
- uses: actions/cache@v3
with:
path: |
~/.task
website/_site
website/playground/dist
website/shared/dist
key: ${{ runner.os }}-task-cache
- run: task website
env:
TASK_TEMP_DIR: ~/.task
NODE_OPTIONS: --max-old-space-size=4096
SENTRY_ORG: "${{ secrets.SENTRY_ORG }}"
SENTRY_PROJECT: "${{ secrets.SENTRY_PROJECT }}"
SENTRY_AUTH_TOKEN: "${{ secrets.SENTRY_AUTH_TOKEN }}"
VITE_SENTRY_DSN: "${{ secrets.VITE_SENTRY_DSN }}"
VITE_P2P_SERVER: "${{ secrets.VITE_P2P_SERVER }}"
- uses: actions/upload-pages-artifact@v2
with:
path: website/_site/
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2