Skip to content

Commit 5059136

Browse files
authored
Merge pull request #5 from Embarcadero/docs
Publishing docs to GitHub Pages
2 parents 2ffa2aa + 1d82802 commit 5059136

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/pypi.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,18 @@ jobs:
7373
path: dist
7474

7575
- name: Publish package to PyPI
76-
uses: pypa/gh-action-pypi-publish@release/v1
76+
uses: pypa/gh-action-pypi-publish@release/v1
77+
78+
upload_gh_pages:
79+
name: Deploy to GitHub Pages
80+
needs: [upload_pypi]
81+
runs-on: ubuntu-latest
82+
if: github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/v')
83+
steps:
84+
- name: Publish docs
85+
uses: peaceiris/actions-gh-pages@v3
86+
with:
87+
publish_branch: gh-pages
88+
github_token: ${{ secrets.GITHUB_TOKEN }}
89+
publish_dir: docs/
90+
force_orphan: true

0 commit comments

Comments
 (0)