-
Notifications
You must be signed in to change notification settings - Fork 7
74 lines (61 loc) · 1.71 KB
/
cd.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
69
70
71
72
73
74
name: CD
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
id-token: write
contents: read
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_DEFAULT_ACCOUNT_ID: f02b3ef168fe64129e9941b4fb2e4dc1
jobs:
landing:
name: Landing
runs-on: ubuntu-latest
environment: production
concurrency:
group: production
env:
VITE_MATTRAX_CLOUD_ORIGIN: https://web.mattrax.app
NITRO_PRESET: cloudflare_pages
steps:
- name: Git clone the repository
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Install dependencies
run: pnpm i
- name: Build
working-directory: apps/landing
run: pnpm build
- name: Deploy
working-directory: apps/landing
run: pnpm wrangler pages deploy
# sst:
# name: SST
# runs-on: ubuntu-latest
# environment: production
# concurrency:
# group: production
# steps:
# - name: Git clone the repository
# uses: actions/checkout@v4
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# role-to-assume: "arn:aws:iam::101829795063:role/mattrax-gh-actions"
# aws-region: us-east-1
# role-session-name: mattrax-sst-workflow
# - uses: pnpm/action-setup@v4
# with:
# version: latest
# - name: Rust cache
# uses: Swatinem/rust-cache@v2
# - name: Install dependencies
# run: pnpm i
# - name: SST
# run: pnpm sst deploy --stage prod