Skip to content

Merge branch 'main' of https://github.com/NREL/HVACResourceMap #36

Merge branch 'main' of https://github.com/NREL/HVACResourceMap

Merge branch 'main' of https://github.com/NREL/HVACResourceMap #36

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set node version
uses: actions/setup-node@v3
with:
node-version: 20.10.0
- name: Install and Build
run: |
npm install
npm run build
cp dist/index.html dist/404.html
- name: Deploy S3 Production
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
AWS_REGION: us-west-2
if: github.ref == 'refs/heads/main'
run: |
aws s3 sync --delete ./dist s3://${{ secrets.AWS_PROD_BUCKET }}
- name: Deploy Github Pages
uses: JamesIves/[email protected]
if: github.ref == 'refs/heads/main'
with:
branch: gh-pages
folder: dist