-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (45 loc) · 1.09 KB
/
publish-pypi-bdist-linux.yml
File metadata and controls
54 lines (45 loc) · 1.09 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
51
52
53
54
name: uv publish bdist to PyPI
on:
release:
types:
[created]
push:
branches:
- master
- deploy-test
jobs:
pypi:
name: Publish bdist to Pypi
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] # windows-latest, macOS-latest]
python-version: ['3.9', '3.10', '3.11']
#exclude:
#- python-version: ['3.11']
#os: windows-latest
runs-on: ${{ matrix.os }}
steps:
# git checkout
- name: git checkout
uses: actions/checkout@v5
with:
# https://github.com/marketplace/actions/checkout#usage
fetch-depth: 0 # to fetch all history from all branches
fetch-tags: true
# Install uv
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
# Build dist
- name: Build the project
run: |
rm dist/*
uv build
rm dist/*.tar.gz
- name: Publish bdist to PyPI
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv publish