-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.55 KB
/
deploy-development.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
---
name: Deploy to Development
# yamllint disable-line rule:truthy
on:
push:
branches:
- dev
workflow_dispatch:
concurrency:
group: deploy-development-${{ github.head_ref || github.ref }}
cancel-in-progress: false
jobs:
deploy-sst:
name: 🚀 Deploy to development with SST
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- name: 🏗️ Setup PNPM
uses: ./.github/actions/setup-app
with:
cache-build: true
cache-opennext: true
- name: 🚀 Deploy to development with SST
run: |
pnpm dlx sst deploy --stage development
env:
# General build settings
CI: true
NODE_ENV: production
TURBO: 1 # Use turbopack for faster builds
# AWS
AWS_REGION: "eu-west-2"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# Cloudflare
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_DEFAULT_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_DEFAULT_ACCOUNT_ID }}
# Tomorrow.io
WEATHER_API_KEY: ${{ secrets.WEATHER_API_KEY }}
# Sentry
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# Posthog
NEXT_PUBLIC_POSTHOG_KEY: ${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }}
NEXT_PUBLIC_POSTHOG_HOST: ${{ secrets.NEXT_PUBLIC_POSTHOG_HOST }}