Skip to content

Commit e687393

Browse files
committed
ci(docs): uploads documentation to GitHub pages
1 parent b9aa1e7 commit e687393

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

.github/workflows/docs.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
pull_request:
8-
branches:
9-
- master
107

118
env:
129
POETRY_HOME: /opt/poetry
@@ -18,32 +15,31 @@ jobs:
1815
runs-on: ubuntu-latest
1916

2017
steps:
21-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
2219
- name: Set up Python
23-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v6
2421
with:
2522
python-version: 3.9
2623
- name: Load Poetry cache
2724
id: poetry-cache
28-
uses: actions/cache@v3
25+
uses: actions/cache@v5
2926
with:
3027
path: ${{ env.POETRY_HOME }}
3128
key: ${{ runner.os }}-3.9-${{ hashFiles('./pyproject.toml') }}-${{ hashFiles('./poetry.lock') }}
3229
- name: Build documentation
3330
run: make docs
3431
- name: Archive build artifacts
35-
uses: actions/upload-artifact@v3
32+
uses: actions/upload-artifact@v6
3633
with:
3734
name: ${{ format('docs-{0}', github.sha) }}
3835
path: site
3936
retention-days: 60
40-
- name: Deploy to Netlify
41-
uses: nwtgck/actions-netlify@v2.1.0
37+
- name: Deploy to GitHub Pages
38+
uses: crazy-max/ghaction-github-pages@v4
4239
with:
43-
publish-dir: site
44-
production-deploy: false
45-
github-token: ${{ secrets.GITHUB_TOKEN }}
46-
enable-commit-comment: false
40+
target_branch: gh-pages
41+
build_dir: site
42+
commit_message: "Deploy to GitHubPages"
43+
jekyll: false
4744
env:
48-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
49-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)