Skip to content

Commit bfb8978

Browse files
committed
Update CI
1 parent cb4e451 commit bfb8978

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,32 @@ jobs:
2525

2626
# Go
2727
steps:
28-
- name: Deploy app
29-
uses: architect/action-deploy@v1
28+
- name: Check out repo
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Node.js
32+
uses: actions/setup-node@v4
3033
with:
3134
node-version: lts/*
32-
aws_access_key_id: ${{secrets.AWS_ACCESS_KEY_ID}}
33-
aws_secret_access_key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
35+
36+
- name: Install
37+
run: npm i
38+
39+
- name: Staging Deploy
40+
if: github.ref == 'refs/heads/main'
41+
run: npx arc deploy --staging
42+
env:
43+
CI: true
44+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
45+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
46+
47+
- name: Production Deploy
48+
if: startsWith(github.ref, 'refs/tags/v')
49+
run: npx arc deploy --production
50+
env:
51+
CI: true
52+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
53+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3454

3555
- name: Notify
3656
uses: sarisia/actions-status-discord@v1

0 commit comments

Comments
 (0)