.github/workflows/deploy-production.yml
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy - Production
on:
push:
branches:
- master
jobs:
deploy-production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- run: node --version
- name: Install dependencies
run: npm ci
- name: Builder
run: npm run build
env:
IDENTITY_POOL_ID: ${{ secrets.IDENTITY_POOL_ID }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
allow_empty_commit: true