-
Notifications
You must be signed in to change notification settings - Fork 257
46 lines (37 loc) · 999 Bytes
/
build.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
name: Build and deploy
on:
push:
paths-ignore:
- '**.md'
pull_request:
jobs:
build:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Cache Node dependencies
uses: actions/setup-node@v4
with:
cache: pnpm
- name: Cache Rust workspace
uses: Swatinem/rust-cache@v2
with:
workspaces: rust
- name: Install Node dependencies
run: pnpm install
- name: Run build
run: pnpm run build
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: burnett01/[email protected]
with:
switches: -va --delete-after --exclude=data/ --exclude=priv/ --exclude=.well-known/
path: dist/
remote_path: noclip.website/
remote_host: iad1-shared-e1-29.dreamhost.com
remote_user: gznoclip
remote_key: ${{ secrets.DEPLOY_KEY }}