forked from wiremind/remoulade
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 796 Bytes
/
Copy pathpythonpublish.yml
File metadata and controls
31 lines (29 loc) · 796 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
name: Upload Python Package
on:
push:
tags:
- v*
jobs:
deploy:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/project/remoulade/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v5
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v6
with:
python-version: "3.12"
activate-environment: true
- name: Install dependencies
run: uv pip install twine
- name: Build package
run: |
uv build
twine check --strict dist/*
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1