-
-
Notifications
You must be signed in to change notification settings - Fork 51
36 lines (32 loc) · 922 Bytes
/
web-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
name: Deploy svg2gcode-web
on:
workflow_run:
branches: [main]
workflows: [Build svg2gcode-web]
types: [completed]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- uses: jetli/[email protected]
- uses: jetli/[email protected]
- name: Trunk build
run: |
cd web
trunk build --release --public-url svg2gcode
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web/dist