-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (64 loc) · 1.78 KB
/
deploy-www.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
name: publish www
on:
workflow_dispatch:
merge_group:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
VOLTA_FEATURE_PNPM: 1
jobs:
publish-www-production:
if: github.ref_name == 'main'
name: publish www production
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
timeout-minutes: 10
environment:
name: "www production"
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup turborepo
uses: ./.github/actions/setup-turborepo
- name: publish-pages
uses: ./.github/actions/publish-pages
with:
project-name: www
dist: ./app/www/dist
build: pnpm build --filter www
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
env:
DATA_CF_BEACON_TOKEN_ID: ${{ secrets.DATA_CF_BEACON_TOKEN_ID }}
publish-www-staging:
if: github.ref_name != 'main'
name: publish www staging
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
timeout-minutes: 10
environment:
name: "www staging"
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup turborepo
uses: ./.github/actions/setup-turborepo
- name: publish-pages
uses: ./.github/actions/publish-pages
with:
project-name: www
dist: ./app/www/dist
build: pnpm build --filter www
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}