Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Jan 2, 2025
1 parent cb4e451 commit bfb8978
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,32 @@ jobs:

# Go
steps:
- name: Deploy app
uses: architect/action-deploy@v1
- name: Check out repo
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
aws_access_key_id: ${{secrets.AWS_ACCESS_KEY_ID}}
aws_secret_access_key: ${{secrets.AWS_SECRET_ACCESS_KEY}}

- name: Install
run: npm i

- name: Staging Deploy
if: github.ref == 'refs/heads/main'
run: npx arc deploy --staging
env:
CI: true
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Production Deploy
if: startsWith(github.ref, 'refs/tags/v')
run: npx arc deploy --production
env:
CI: true
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Notify
uses: sarisia/actions-status-discord@v1
Expand Down

0 comments on commit bfb8978

Please sign in to comment.