Skip to content

Merge pull request #122 from worldline/dependabot/pip/material/rest-a… #221

Merge pull request #122 from worldline/dependabot/pip/material/rest-a…

Merge pull request #122 from worldline/dependabot/pip/material/rest-a… #221

name: Deploy to ghpages
on:
push:
branches: [main]
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Build VuePress site
run: cd docs && npm install && npm run docs:build
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: docs/src/.vuepress/dist
env:
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}