-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (84 loc) · 2.46 KB
/
release.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Github Pages
on:
workflow_dispatch:
push:
branches:
- dev
- main
- beta
- test
jobs:
beta:
if: contains(github.event.head_commit.message, '[beta]') || contains(github.event.head_commit.message, '[all]')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set pnpm
uses: pnpm/action-setup@v4
with:
version: 8
- name: Install dependencies & build
env:
NEXT_PUBLIC_ENV: "beta"
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Deploy Gh-Pages 🚀
uses: XueMoMo/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
cname: beta.dashboard.enreach.network
staging:
if: contains(github.event.head_commit.message, '[staging]') || contains(github.event.head_commit.message, '[all]')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set pnpm
uses: pnpm/action-setup@v4
with:
version: 8
- name: Install dependencies & build
env:
NEXT_PUBLIC_ENV: "staging"
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Deploy Gh-Pages 🚀
uses: XueMoMo/[email protected]
with:
deploy_key: ${{ secrets.DK_STAGING }}
publish_dir: ./out
external_repository: EnReachNetwork/dashboard-site-staging
cname: staging.dashboard.enreach.network
prod:
if: contains(github.event.head_commit.message, '[prod]') || contains(github.event.head_commit.message, '[all]')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set pnpm
uses: pnpm/action-setup@v4
with:
version: 8
- name: Install dependencies & build
env:
NEXT_PUBLIC_ENV: "prod"
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Deploy Gh-Pages 🚀
uses: XueMoMo/[email protected]
with:
deploy_key: ${{ secrets.DK_PROD }}
publish_dir: ./out
external_repository: EnReachNetwork/dashboard-site-prod
cname: dashboard.enreach.network