Next.js Publish #661
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: 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 |