Publish docs #35
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: | |
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: | |
- name: Checkout | |
uses: actions/checkout@main | |
- 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.*' |