forked from CelestoAI/agentor
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 791 Bytes
/
release.yml
File metadata and controls
35 lines (26 loc) · 791 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
name: Publish Python Package
on:
push:
tags:
- "v*.*.*" # Trigger on version tags like v1.2.3
permissions:
contents: read
id-token: write # Needed for PyPI trusted publishing
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install 3.12 # or your target version
- name: Install dependencies
run: uv sync
- name: Build package
run: uv build # creates dist/*.tar.gz and dist/*.whl
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true # avoid error if version already exists