.github/workflows/Test.yml: another try...
This commit is contained in:
parent
67b2cc7d5c
commit
39664d9f1a
|
|
@ -9,19 +9,10 @@ jobs:
|
|||
|
||||
|
||||
doc:
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' # Only run on push
|
||||
runs-on: ubuntu-latest
|
||||
name: '📓 Docs'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
steps:
|
||||
- name: '🧰 Checkout'
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -39,14 +30,13 @@ jobs:
|
|||
run: |
|
||||
sphinx-build -b html doc doc/_build/html
|
||||
|
||||
- name: '⬆️ Upload Pages artifact'
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
- name: '⬆️ Deploy to gh-pages'
|
||||
uses: peaceiris/actions-gh-pages@v6
|
||||
with:
|
||||
path: doc/_build/html
|
||||
|
||||
- name: '🚀 Deploy to GitHub Pages'
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: doc/_build/html
|
||||
publish_branch: gh-pages
|
||||
keep_files: false
|
||||
|
||||
|
||||
lin-build:
|
||||
|
|
@ -219,4 +209,4 @@ jobs:
|
|||
with:
|
||||
token: ${{ github.token }}
|
||||
tag: 'nightly'
|
||||
files: artifact/**/*
|
||||
files: artifact/**/*
|
||||
Loading…
Reference in New Issue