0.3.13 #119
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: GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 20.x ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: Documentation Build | |
run: BASE=/jskos-vue/$BRANCH npm run docs:build | |
env: | |
BRANCH: ${{ github.ref != 'refs/heads/main' && 'dev/' || '' }} | |
# Note: If the Deploy step is adjusted, the Retry copy below needs to be adjusted as well. | |
# (This is an unfortunate workaround, see login-client-vue/#1.) | |
- name: Deploy | |
continue-on-error: true | |
id: deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/.vitepress/dist | |
keep_files: true | |
destination_dir: ${{ github.ref != 'refs/heads/main' && 'dev' || '' }} | |
- name: Deploy Retry | |
if: steps.test.outcome == 'failure' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/.vitepress/dist | |
keep_files: true | |
destination_dir: ${{ github.ref != 'refs/heads/main' && 'dev' || '' }} |