List users service dist assets #5
Workflow file for this run
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
# Reset to the latest file code in the develop branch before merging to develop | |
# Clean up your `Casimir${Stack}${Stage}` stacks from the AWS CloudFormation console after use | |
# If you want to use a different branch or stage name (not sandbox), edit line 7 or 11 accordingly | |
name: Push | |
on: | |
push: | |
branches: [feature/users-web-cdk] # Replace with your branch name | |
env: | |
PROJECT: casimir | |
STAGE: sandbox # Replace with your stage name | |
AWS_REGION: us-east-2 | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
# Skip any pushes with commit flag '(skip deploy)' | |
# Comment out for testing | |
if: ${{ !contains(github.event.head_commit.message, '(skip deploy)') }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install action dependencies | |
run: | | |
curl -sSf https://atlasgo.sh | sh | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Install and build all package dependencies | |
run: npm ci | |
env: | |
PUBLIC_STAGE: ${{ env.STAGE }} | |
- name: Deploy cdk infrastructure | |
run: npm run deploy:cdk | |
- name: Migrate users database | |
run: npm run migrations:users |