Skip to content

Commit

Permalink
CI: use gh-pages-action
Browse files Browse the repository at this point in the history
Signed-off-by: Karol Gugala <[email protected]>
  • Loading branch information
kgugala committed Oct 15, 2024
1 parent 230bf44 commit e1874db
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ jobs:
run: |
. ./docs/env/conda/bin/activate f4pga-docs
make -C docs html
cd docs/_build/html
touch .nojekyll
- name: '📤 Upload artifact: Sphinx HTML'
uses: actions/upload-artifact@v3
Expand All @@ -91,17 +93,10 @@ jobs:

- name: 🚀 Publish site to GitHub Pages
if: github.event_name != 'pull_request'
run: |
cd docs/_build/html
touch .nojekyll
git init
cp ../../../.git/config ./.git/config
git add .
git config --local user.email "BuildTheDocs@GitHubActions"
git config --local user.name "GitHub Actions"
git commit -a -m "update ${{ github.sha }}"
git push -u origin +HEAD:gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html

Install:
runs-on: ubuntu-latest
Expand Down

0 comments on commit e1874db

Please sign in to comment.