forked from heliocastro/python-ort
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.1 KB
/
publish.yml
File metadata and controls
49 lines (40 loc) · 1.1 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
# SPDX-FileCopyrightText: 2025 Helio Chissini de Castro <heliocastro@gmail.com>
#
# SPDX-License-Identifier: MIT
name: Publish
on:
push:
tags:
- 'v*'
paths-ignore:
- '**.md'
jobs:
publish:
name: Publish Python Ort on PyPI
runs-on: ubuntu-24.04
environment:
name: PyPI
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
enable-cache: true
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
with:
python-version: '3.10' # Minimal supported Python
- name: Build 📦 package
shell: bash
run: |
uv build
- name: Upload artifacts
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
with:
name: 'build-artifacts-python-3.13'
path: dist/*
- name: Publish PyPI 📦 package
shell: bash
run: |
uv publish