-
-
Notifications
You must be signed in to change notification settings - Fork 26
36 lines (31 loc) · 882 Bytes
/
pythonpublish.yml
File metadata and controls
36 lines (31 loc) · 882 Bytes
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
name: Upload Python Package
on:
workflow_dispatch:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Make sure unit tests succeed
run: |
git config --global user.name "Github Action"
git config --global user.email "githubaction@gmail.com"
uv run pytest
- name: Build
run: |
uv build
# See https://docs.pypi.org/trusted-publishers/using-a-publisher/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Deploy mkdocs site
run: |
uv run mkdocs gh-deploy --force