Skip to content

Commit

Permalink
ci: add docs deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
fankes committed Sep 23, 2023
1 parent 32702e0 commit cd6e1b6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy to GitHub pages

on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'docs-source/**'
- '.github/workflows/**'

permissions:
contents: write

jobs:
docs:
if: ${{ success() }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: cd docs-sources && yarn -i
- name: Build VuePress site
run: |
cd docs-sources
yarn docs:build-gh-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: docs-source/dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cd6e1b6

Please sign in to comment.