-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.11 KB
/
deploy.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
name: Deploy to SST
on:
push:
branches: main
paths-ignore:
- '**.md'
env:
NEXTAUTH_URL: https://d8vd0r6uuds8z.cloudfront.net
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::851725431297:role/Github
role-session-name: GitHubActions
role-duration-seconds: 1800
- name: Install SST
run: |
wget https://github.com/sst/ion/releases/download/v0.0.193/sst-linux-amd64.deb
sudo dpkg -i sst-linux-amd64.deb
sst version
- name: Install Bun
uses: oven-sh/setup-bun@v1
- name: Deploy with SST
run: |
bun install
sst deploy --stage=juliomeza2510 --verbose