-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.03 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
name: Continuous deployment
permissions:
contents: write
on:
workflow_run:
branches: [main]
workflows: [Rust_Build]
types: [completed]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '14'
- run: npm install -D tailwindcss
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- uses: jetli/[email protected]
- uses: jetli/[email protected]
- run: trunk build --release
- run: awk -i inplace '{gsub(/\/homepage/,"./homepage");}1' dist/index.html && awk -i inplace '{gsub(/=\//,"=./");}1' dist/index.html #Maybe there's one command to do this, I don't care, it's small and fast anyway
- run: echo www.wyatt.rs > CNAME
- uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist