-
Notifications
You must be signed in to change notification settings - Fork 60
50 lines (46 loc) · 1.22 KB
/
deploy-release.yml
File metadata and controls
50 lines (46 loc) · 1.22 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
name: deploy
on:
push:
tags:
- '*'
jobs:
pypi:
name: upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mkdocs-bootswatch
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel build
- name: Build
run: |
python -m build
- name: Publish to PyPI
if: success()
uses: pypa/gh-action-pypi-publish@v1
ghpages:
name: upload documentation to Github Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install .
- name: Publish to GitHub Pages
if: success()
run: |
python -m mkdocs gh-deploy --clean --verbose