Skip to content

Auto-Deployment

Auto-Deployment #2436

name: Auto-Deployment
on:
schedule:
- cron: '30 10 * * MON-FRI'
- cron: '30 11 * * MON-FRI'
- cron: '30 12 * * MON-FRI'
- cron: '30 13 * * MON-FRI'
- cron: '30 14 * * MON-FRI'
- cron: '0 12 * * SUN'
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# a standard step for GitHub actions on Node
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
with:
# update the Node version to meet your needs
node-version: 18.2
cache: npm
- name: Build
run: |
npm ci
npm run build
touch out/.nojekyll
env:
NEXT_PUBLIC_BASE_PATH: ''
- name: Deploy
# https://github.com/JamesIves/github-pages-deploy-action
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: out