-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.73 KB
/
Copy pathdocs.yml
File metadata and controls
56 lines (51 loc) · 1.73 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# SPDX-License-Identifier: AGPL-3.0-or-later
# Commercial license available
# © Concepts 1996–2026 Miroslav Šotek. All rights reserved.
# © Code 2020–2026 Miroslav Šotek. All rights reserved.
# ORCID: 0009-0009-3560-0851
# Contact: www.anulum.li | protoscience@anulum.li
# SCPN Quantum Control — Docs
name: Deploy docs
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
# Serialise Pages deployments so rapid successive pushes do not race on the
# single active GitHub Pages deployment; a losing race surfaces as the
# deploy-pages "Deployment failed, try again later." error. In-progress
# deployments are allowed to finish rather than being cancelled.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.12"
cache: 'pip'
- run: python -m pip install --require-hashes -r requirements-ci-py312-linux.txt
- run: python -m pip install --no-deps -e oscillatools/
- run: python -m pip install --no-deps -e .
- run: mkdocs build --site-dir _site
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
path: _site
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5
id: deployment