Skip to content

build: update dependencies (#187) #6

build: update dependencies (#187)

build: update dependencies (#187) #6

Workflow file for this run

name: Publish docs
on:
push:
branches:
- 'v2-main'
paths:
- 'docs/**'
jobs:
build-assets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
# Because of gitbook support
node-version: 10
- run: |
npm i -g gitbook-cli
gitbook install
gitbook build
working-directory: ./docs/
- run: cp -a ./docs/_book/. ./deploy/
- name: Upload deploy artifact
uses: actions/upload-artifact@v4
with:
name: deploy
path: deploy/
deploy:
runs-on: ubuntu-latest
needs: build-assets
steps:
- name: Download deploy artifact
uses: actions/download-artifact@v4
with:
name: deploy
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .