-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (49 loc) · 1.4 KB
/
preview-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
54
55
56
57
58
59
60
61
62
63
name: Preview and downloads frequent build and deploy
on:
push:
branches:
- main
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: pnpm/[email protected]
with:
version: 6
- uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Install packages
run: pnpm install
- name: Build site
run: pnpm run build:www
env:
NODE_OPTIONS: "--max_old_space_size=4096"
VITE_GLOWBUZZER_VERSION: preview
- name: Generate index
run: node post-process-site.mjs preview.glowbuzzer.com
- name: Deploy site
run: ./deploy-site.sh www preview.glowbuzzer.com E284GBH6OG76DV
deploy-downloads:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: pnpm/[email protected]
with:
version: 6
- uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Install packages
run: pnpm install
- name: Build site
run: pnpm run build:downloads
- name: Deploy site
run: ./deploy-site.sh downloads downloads.glowbuzzer.com E36QR0RH2CR6EK