Deploy on Github Pages #1386
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy on Github Pages | |
on: | |
push: | |
branches: | |
- master | |
workflow_run: | |
workflows: [ "Fetch data" ] | |
branches: | |
- master | |
types: | |
- completed | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 12 | |
- name: Build | |
run: | | |
yarn install --frozen-lockfile | |
PUBLIC_URL=https://adimoldovan.github.io/covid-19 yarn run build | |
- name: Deploy to Github Pages | |
env: | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
EMAIL: "github-actions-bot-noreply@noreply" | |
USERNAME: "github-actions-bot" | |
run: yarn run deploy-ci |