-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (40 loc) · 1.33 KB
/
deploy-dev.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
name: Deploy Dev Build
on:
push:
branches:
- master
concurrency: deploy-dev
jobs:
deploy:
name: Deploy To AWS
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
- name: install dependencies hoisted for lambda
run: pnpm install --node-linker=hoisted
- run: pnpm exec serverless package --stage dev
- uses: actions/upload-artifact@v4
with:
name: dev-som-qualtrics-survey-responses.zip
path: ./.serverless/som-qualtrics-survey-responses.zip
if-no-files-found: error
retention-days: 3
compression-level: 0
- run: pnpm exec serverless deploy --stage dev --package ./.serverless --conceal --verbose
- uses: act10ns/slack@v2
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ILIOS_DEPLOYMENT_WEBHOOK_URL }}
with:
status: ${{ job.status }}
message: Qualtrics ETL Dev Deploy Failed {{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/actions/runs/{{ env.GITHUB_RUN_ID }}