Cognito frontend integration #6
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: UI deploy | |
on: | |
push: | |
paths: | |
- 'services/tasks_ui/**' | |
- '.github/workflows/ui.yml' | |
env: | |
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: eu-west-1 | |
APP_ENVIRONMENT: development | |
jobs: | |
deploy-development: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18] | |
defaults: | |
run: | |
working-directory: services/tasks_ui | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install serverless | |
run: npm install -g serverless | |
- name: Install NPM dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Deploy | |
run: sls deploy --stage development --verbose |