-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (35 loc) · 862 Bytes
/
release.yml
File metadata and controls
36 lines (35 loc) · 862 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: release
on:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: check out repository
uses: actions/checkout@v3
- name: run tests
uses: ./.github/actions/test
with:
python-version: ${{ matrix.python-version }}
release:
needs: [test]
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: install dependencies
uses: ./.github/actions/install-dependencies
with:
python-version: 3.12
- name: set version
run: uv version ${{ github.ref_name }}
- name: release
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
uv build
uv publish