Publish docs #31
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: Publish docs | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'docs/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
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 | |
# 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 "s/base: \"\/shipshape\/\"/base: \"\/main\/\"/" src/.vuepress/config.js | |
npm install | |
npm run build | |
- name: Publish to Quant | |
uses: quantcdn/[email protected] | |
with: | |
customer: salsa-digital | |
project: shipshape | |
token: ${{ secrets.QUANT_TOKEN }} | |
dir: docs/src/.vuepress/dist | |
skip-unpublish-regex: '^/1\.x.*' |