This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Grammar check #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
# Run on pushes to main branch | |
on: | |
push: | |
branches: [main] | |
# Read credentials from repo secrets and expose them in the environment. | |
# The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY variables are for the | |
# AWS CLI to let us access our AWS account. | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_KEY_SECRET }} | |
APP_PASSWORD: ${{ secrets.APP_PASSWORD }} | |
APP_USERNAME: ${{ secrets.APP_USERNAME }} | |
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }} | |
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the code | |
- uses: actions/checkout@v3 | |
# Install Node | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# Install Serverless and use it to deploy to Lambda | |
- name: Deploy | |
run: | | |
cd web_app | |
npm install -g serverless | |
npm ci | |
sls deploy |