Skip to content

Commit

Permalink
adding docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
toniher committed Dec 2, 2024
1 parent 8cca812 commit f52e697
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Docs
on:
workflow_dispatch:
push:
paths:
- 'docs/**'
pull_request:
paths:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- id: deployment
uses: sphinx-notes/pages@v3
with:
publish: false
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_dir: ${{ github.ref_name }}
publish_dir: ${{ steps.deployment.outputs.artifact }}
- uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
- uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Copy file
run: |
cp ./assets/docs/index.html ./gh-pages/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages

0 comments on commit f52e697

Please sign in to comment.