35 lines
713 B
YAML
35 lines
713 B
YAML
name: Deploy Navigation Site
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
npm init -y
|
|
npm install js-yaml
|
|
|
|
- name: Generate site
|
|
run: node generator.js
|
|
|
|
- name: Deploy to GitHub Pages
|
|
uses: JamesIves/github-pages-deploy-action@4.1.4
|
|
with:
|
|
branch: gh-pages
|
|
folder: .
|
|
clean: true |