-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (30 loc) · 824 Bytes
/
publish.yml
File metadata and controls
33 lines (30 loc) · 824 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
name: Build distribution
on:
release:
types: [created]
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
test:
uses: ./.github/workflows/test.yml
lint:
uses: ./.github/workflows/lint.yml
deploy:
needs: [test, lint]
name: Deploy to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: "true"
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
# Allow prerelease if explicitly marked in pyproject.toml so we can prerelease in conjunction
# with engine updates.
- run: uv build --prerelease=explicit
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./dist