Skip to content

Commit

Permalink
update pages workflow to try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepearson committed Oct 14, 2024
1 parent a5d61d3 commit 7dd8aef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autoblack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout $GITHUB_HEAD_REF
git commit -am "fixup: Format Python code with Black"
git push
git push
30 changes: 11 additions & 19 deletions .github/workflows/update_pages.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
name: Deploy Sphinx documentation to Pages

on: [pull_request]
#push:
#branches: [main] # branch to trigger deployment

name: Pages
on:
push:
branches:
- main
jobs:
build:
pages:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
- id: deployment
uses: sphinx-notes/pages@v3
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

- name: Build and Commit
uses: sphinx-notes/pages@master
with:
documentation_path: docs

- name: Push changes
uses: ad-m/github-push-action@master
publish: false
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
publish_dir: ${{ steps.deployment.outputs.artifact }}

0 comments on commit 7dd8aef

Please sign in to comment.