Skip to content

Next.js Publish

Next.js Publish #646

Workflow file for this run

name: Next.js Publish
on:
# Run every day at 4am to update javadoc and API
schedule:
- cron: "0 4 * * *"
push:
branches:
- source
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install 🔧
run: npm ci
- name: Update Javadoc + API Doc
run: node get-releases.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build 🔧
run: npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: master
folder: out