-
-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (48 loc) · 1.39 KB
/
publish.yml
File metadata and controls
57 lines (48 loc) · 1.39 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
57
name: Publish site
on:
push:
branches:
- main
workflow_dispatch:
# Cancel active CI runs for a PR before starting another run
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash # https://github.com/beeware/briefcase/pull/912
env:
FORCE_COLOR: "1"
jobs:
publish:
name: Build and publish site
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v6.2.0
with:
python-version: "3.X"
cache: pip
cache-dependency-path: |
pyproject.toml
.pre-commit-config.yaml
- name: Update pip
run: python -m pip install -U pip
- name: Install Tox
run: python -m pip install --group 'tox-uv'
- name: Build the site
run: python -m tox -e docs-all
- name: Deploy the built files
uses: JamesIves/github-pages-deploy-action@v4.8.0
with:
folder: _build/html # The folder the action should deploy.
branch: gh-pages # The branch to which the action should deploy.
git-config-name: github-actions[bot]
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com