-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (30 loc) · 890 Bytes
/
Copy pathpython-publish.yml
File metadata and controls
36 lines (30 loc) · 890 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
# This workflow will upload a Python Package to PyPI when a version tag is pushed.
# It uses Trusted Publishing (OpenID Connect) — no API tokens needed.
# Configure the trusted publisher at: https://pypi.org/manage/project/cryptobot-python/settings/publishing/
name: Upload Python Package
on:
push:
tags: v*.*.*
permissions:
contents: read
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cryptobot-python
steps:
- uses: actions/checkout@v6
- name: Set up uv
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
- name: Set up Python 3.13
run: uv python install 3.13
- name: Install dependencies
run: uv sync
- name: Build package
run: uv build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1