Skip to content

Commit

Permalink
Github CI: pages actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vova5703945 committed Feb 16, 2024
1 parent f57f017 commit 2ff4608
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -24,10 +28,19 @@ jobs:
run: |
python3 -m sphinx -b html ./docs/source _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
path: "./_build"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# publish_branch: gh-pages
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: _build/
# force_orphan: true

0 comments on commit 2ff4608

Please sign in to comment.