Skip to content

Docs

Docs #28

Workflow file for this run

name: Docs
on:
workflow_dispatch:
push:
paths:
- 'docs/**'
pull_request:
paths:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
path: ${{ github.ref_name }}
- uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Copy file
run: |
mkdir -p ./gh-pages/${{ github.ref_name }}/ \
&& cp -pr ${{ github.ref_name }}/docs/* ./gh-pages/${{ github.ref_name }}/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
enable_jekyll: true
publish_dir: ./gh-pages