-
-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (47 loc) · 1.32 KB
/
publish-release.yml
File metadata and controls
49 lines (47 loc) · 1.32 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
name: Publish Release
on:
release:
types: [published]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: pip install --upgrade pip hatch uv
- name: Configure Git
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Publish ${{ github.event.release.name }} Docs
run: hatch run docs:deploy_latest ${{ github.ref_name }}
concurrency:
group: publish-docs
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: pip install --upgrade pip hatch uv
- name: Build Package
run: hatch build --clean
- name: Publish to PyPI
env:
HATCH_INDEX_USER: ${{ secrets.PYPI_USERNAME }}
HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}
run: hatch publish --yes