Skip to content

Publish docs

Publish docs #33

Workflow file for this run

name: Publish docs
on:
push:
branches: [ main ]
paths:
- 'docs/**'
workflow_dispatch:
jobs:
gh-pages:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@main
- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_SCRIPT: cd docs && npm install && npm run build
BUILD_DIR: src/.vuepress/dist/main
quantcdn:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
# TODO: Remove this step and the one above once all docs are moved to Quant.
- name: Replace base dir for Quant & rebuild
run: |
cd docs
sed -i "s/base: \"\/shipshape\/\"/base: \"\/main\/\"/" src/.vuepress/config.js
npm install
npm run build
- name: Publish to Quant
uses: quantcdn/deploy-action@v5.0.0
with:
customer: salsa-digital
project: shipshape
token: ${{ secrets.QUANT_TOKEN }}
dir: docs/src/.vuepress/dist
skip-unpublish-regex: '^/1\.x.*'