Publish Github Pages #1327
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
# # | |
# # This action will build and publish the gh-pages branch. | |
# # This is set to run against merges to master. | |
# # | |
name: Publish Github Pages | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "15 */6 * * *" # every 6 hours | |
workflow_dispatch: | |
jobs: | |
action: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: yarn | |
- name: Build pages | |
run: | | |
yarn build | |
yarn export | |
- name: Deploy github pages🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: server/out # The folder the action should deploy. |