Generate and publish report #1064
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: Generate and publish report | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
schedule: | |
# Runs every day at 3am | |
- cron: '0 3 * * *' | |
jobs: | |
api-report-master: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Build | |
run: | | |
yarn --frozen-lockfile | |
yarn build | |
- name: Generate Report | |
run: | | |
yarn run generate | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Deploy to Github pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: out |