forked from one-among-us/web
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (54 loc) · 1.48 KB
/
package.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Package and Deploy
on:
workflow_run:
workflows: [ "Vite Build" ]
types:
- completed
workflow_dispatch:
repository_dispatch:
jobs:
package:
name: Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- run: yarn install
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
- name: Download built web artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: dist
path: dist
- name: Checkout data repo's github pages
uses: actions/checkout@v3
with:
repository: "one-among-us/data"
ref: "gh-pages"
path: "data-repo"
- name: Package
uses: one-among-us/[email protected]
with:
args: yarn gen-meta
- name: Publish artifact code
uses: actions/upload-artifact@v3
with:
name: packaged
path: dist
- name: Deploy to GitHub branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist
# - name: Deploy 🚀
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# projectName: one-among-us
# directory: dist