CI: use gh-pages-action
Signed-off-by: Karol Gugala <kgugala@antmicro.com>
This commit is contained in:
parent
230bf44e99
commit
e1874db40b
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue