Skip to content

Merge pull request #1482 from CityOfPhiladelphia/10-30-24-redirs #556

Merge pull request #1482 from CityOfPhiladelphia/10-30-24-redirs

Merge pull request #1482 from CityOfPhiladelphia/10-30-24-redirs #556

Workflow file for this run

name: Deploy router updates to staging
on:
push:
branches:
- staging
jobs:
build:
name: Run lambda and invalidate cloudfront
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@master
- name: test
run: |
npm install
npm test
- name: run deploy shell script
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
run: |
./deploy.sh ${{ secrets.STAGING_LAMBDA_NAME }} ${{ secrets.STAGING_LAMBDA_ROLE }} ${{ secrets.PROD_S3_BUCKET }} ${{ secrets.STAGING_CLOUDFRONT_DISTRIBUTION_ID }}
aws cloudfront create-invalidation --distribution-id ${{ secrets.STAGING_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"