-
-
Notifications
You must be signed in to change notification settings - Fork 13
69 lines (54 loc) · 1.44 KB
/
publish-stitch-site.yaml
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
name: Publish Stitch Website
on:
workflow_dispatch:
schedule:
# https://crontab.guru/#0_6_*_*_1-5
- cron: '0 6 * * 1-5'
permissions:
contents: read
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- uses: actions/setup-node@v3
with:
node-version: 18.18.0
- run: corepack enable
- run: npm run setup:pnpm
- run: rustup default 1.78.0 # latest doesn't work!
- name: Install Dependencies
run: pnpm install --filter=@bscotch/gamemaker-releases... --filter=@bscotch/stitch-site...
- name: Build Deps
run: pnpm turbo run build --filter=@bscotch/stitch-site^...
- name: Update Unified Feed
run: pnpm node scripts/update-unified-feed.mjs
working-directory: packages/site
- name: Build
run: pnpm build
working-directory: packages/site
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1.0.9
with:
path: packages/site/build/
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2