-
Notifications
You must be signed in to change notification settings - Fork 145
41 lines (39 loc) · 1000 Bytes
/
docs_dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Docs Publish
on:
workflow_dispatch:
push:
branches: [ main ]
concurrency:
group: docs-gh-pages
jobs:
deploy:
if: github.repository_owner == 'Qiskit'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U virtualenv setuptools wheel nox
sudo apt-get install graphviz pandoc
- name: Build docs
run: |
tools/build_documentation_dev.sh
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
name: html_docs
path: docs/build/html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: dev_docs
force_orphan: true