Skip to content

Merge branch 'env-support' #45

Merge branch 'env-support'

Merge branch 'env-support' #45

Workflow file for this run

name: Deploy to dev
on:
push:
branches:
- main
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.PROD_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
AWS_S3_BUCKET: philagov-vue-apps/tools
run:
aws s3 sync dist s3://$AWS_S3_BUCKET --region us-east-1 --delete