-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Arnau Casau <[email protected]> Co-authored-by: Eric Arellano <[email protected]>
- Loading branch information
1 parent
cdde975
commit dcd387a
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,5 @@ jobs: | |
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs/_build/html/ | ||
clean-exclude: | | ||
stable/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Stable Docs Publish | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
deploy: | ||
if: github.repository_owner == 'Qiskit-Extensions' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U virtualenv setuptools wheel tox | ||
sudo apt-get install graphviz pandoc | ||
- name: Build docs stable | ||
env: | ||
QISKIT_DOCS_BUILD_TUTORIALS: 'always' | ||
run: tox -e docs | ||
- name: Bypass Jekyll Processing # Necessary for setting the correct css path | ||
run: touch docs/_build/html/.nojekyll | ||
- name: Set current version | ||
run: | | ||
echo "version=$(git describe --abbrev=0 | cut -d'.' -f1,2)" >> "$GITHUB_ENV" | ||
- name: Deploy stable | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs/_build/html | ||
target-folder: stable/${{ env.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters