Skip to content

Commit

Permalink
try new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Apr 3, 2024
1 parent fe905a4 commit 9222e8c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/checkout@v4
with:
ref: "gh-pages"
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Set up Python
uses: actions/setup-python@v3
- name: Install dependencies
Expand All @@ -33,12 +28,16 @@ jobs:
run: |
cd docs/
make html
- uses: actions/checkout@v4
with:
ref: "gh-pages"
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Deploy to GitHub Pages
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git checkout gh-pages
git pull origin gh-pages
rm -rf *
mv -f ${{ github.workspace }}/docs/_build/html/* .
touch .nojekyll
Expand Down

0 comments on commit 9222e8c

Please sign in to comment.