-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.67 KB
/
deploy-remove.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
---
name: Remove Deployment
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
inputs:
environment:
type: choice
description: "Environment to remove"
required: true
default: "development"
options:
- production
- development
jobs:
deploy-sst:
name: 🪂 Remove from ${{ inputs.environment }} 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: 🪂 Remove from ${{ inputs.environment }} with SST
run: |
pnpm dlx sst remove --stage ${{ inputs.environment }} --print-logs
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 }}