-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build and Deploy Sphinx Docs to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # replace with your default branch | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' # replace x with your version | ||
|
||
- name: Install Dependencies from requirements.txt | ||
run: pip install -r requirements.txt | ||
|
||
- name: Install Optional Dependencies from requirements_opt.txt | ||
run: pip install -r requirements_opt.txt | ||
|
||
- name: Install Dependencies from requirements_dev.txt | ||
run: pip install -r requirements_dev.txt | ||
|
||
- name: Build Sphinx Docs | ||
run: make html # adjust based on your Makefile | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.LEGUARK_ACCESS_TOKEN }} | ||
publish_dir: ./docs/build/html # replace with your generated HTML path |