-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.15 KB
/
Copy pathdeploy.yml
File metadata and controls
50 lines (41 loc) · 1.15 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
name: Deploy
on:
workflow_dispatch:
concurrency:
group: production-deploy
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
HOSTING_AUTH_TOKEN: ${{ secrets.HOSTING_AUTH_TOKEN }}
HOSTING_SITE_ID: ${{ secrets.HOSTING_SITE_ID }}
QUAKE_RENDER_BUNDLE_AVIF_EFFORT: "0"
QUAKE_SHAREWARE_URL: ${{ secrets.QUAKE_SHAREWARE_URL }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 10.33.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Check build inputs
run: |
test -n "$QUAKE_SHAREWARE_URL"
test -n "$HOSTING_AUTH_TOKEN"
test -n "$HOSTING_SITE_ID"
- run: pnpm install --frozen-lockfile
- run: pnpm build:full
- name: Publish prebuilt site
run: |
pnpm --package=netlify-cli@latest dlx netlify deploy \
--prod \
--dir=dist \
--no-build \
--auth "$HOSTING_AUTH_TOKEN" \
--site "$HOSTING_SITE_ID"