Skip to content

Commit

Permalink
will this work?
Browse files Browse the repository at this point in the history
  • Loading branch information
shutosheep committed May 10, 2024
1 parent a156e10 commit eedf5fd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Push HTML Sphinx documents to gh-pages branch

on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4

# https://github.com/actions/setup-python
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Build
run: |
pip install -r requirements.txt
make html
# https://github.com/peaceiris/actions-gh-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/html

0 comments on commit eedf5fd

Please sign in to comment.