Skip to content

docs: fixing minor formatting issues #18

docs: fixing minor formatting issues

docs: fixing minor formatting issues #18

Workflow file for this run

name: publish to gh pages
on:
workflow_dispatch:
push:
paths:
- 'docs/**'
- 'site/**'
branches:
- main
jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout routr repo
uses: actions/checkout@v4
with:
repository: fonoster/routr
path: routr
ref: gh-pages
- name: Save charts directory
run: |
mkdir -p /tmp/charts
cp -a routr/charts/* /tmp/charts
- name: Checkout current repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Build and populate out directory
run: |
# Create out directories
mkdir -p out/charts out/site-assets
# Build docs
cd docs
npm install
npm run build
cp -a build/* ../out/
cd ..
# Charts directory
cp -a /tmp/charts/* out/charts
# Website assets
cp -a site/assets/* out/site-assets
cp site/index.html out/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DEPLOY_KEY }}
publish_dir: ./out
publish_branch: gh-pages
cname: routr.io