Skip to content

Publish Github Pages #1720

Publish Github Pages

Publish Github Pages #1720

# #
# # 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.