Skip to content

Merge pull request #35 from CityOfPhiladelphia/search-redesign #17

Merge pull request #35 from CityOfPhiladelphia/search-redesign

Merge pull request #35 from CityOfPhiladelphia/search-redesign #17

Workflow file for this run

name: Deploy to staging
on:
push:
branches:
- staging
jobs:
build:
name: Build files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Build project files
run: |
printf "@fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> ~/.npmrc
npm ci
npm run build
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_AUTH_TOKEN }}
VUE_APP_AIRTABLE_ACCESS_TOKEN: ${{ secrets.VUE_APP_AIRTABLE_ACCESS_TOKEN }}
- name: Deploy to s3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
AWS_S3_BUCKET: tools-app-dev
run:
aws s3 sync dist s3://$AWS_S3_BUCKET --region us-east-1 --delete