Skip to content

Fix styles, use scoped style whenever possible (#21) #125

Fix styles, use scoped style whenever possible (#21)

Fix styles, use scoped style whenever possible (#21) #125

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
- dev
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
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@v4
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.deploy.outcome == 'failure'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist
keep_files: true
destination_dir: ${{ github.ref != 'refs/heads/main' && 'dev' || '' }}