-
Notifications
You must be signed in to change notification settings - Fork 13
53 lines (51 loc) · 1.55 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
on:
push:
jobs:
deploy:
name: "Deploy v4000 Docs on Cloudflare Workers"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-tags: true
- name: Checkout submodule to v4000
run: |
cd kaplay
git fetch --tags
TAG=$(git tag --list '4000*' --sort=-v:refname creatordate | head -n 1)
echo $TAG
git checkout $TAG
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Deploy app
uses: cloudflare/wrangler-action@v3
with:
packageManager: pnpm
apiToken: ${{ secrets.CLOUDFLARE_WORKERS_KEY }}
command: pages deploy dist --project-name=kaplay4000
preCommands: "pnpm i && pnpm build"
deploylegacy:
name: "Deploy v3001 Docs on Cloudflare Workers"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-tags: true
- name: Checkout submodule to v3001
run: |
cd kaplay
git fetch --tags
TAG2=$(git tag --list '3001.0*' --sort=-v:refname creatordate | head -n 1)
echo $TAG2
git checkout $TAG2
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Deploy app
uses: cloudflare/wrangler-action@v3
with:
packageManager: pnpm
apiToken: ${{ secrets.CLOUDFLARE_WORKERS_KEY }}
command: pages deploy dist --project-name=kaplay3001
preCommands: "pnpm i && pnpm build"