-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.1 KB
/
publish-extract-python.yml
File metadata and controls
48 lines (44 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
name: Publish extra-python
on:
workflow_dispatch:
push:
tags:
- 'extract-python-*'
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
env:
PYTHON_VERSION: 3.12
ASTRAL_VERSION: 0.11.6
steps:
- uses: actions/checkout@v6
- name: Create GH release
run: gh release create "$tag" --generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
publish-extra-python-to-pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/extract-python
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.8"
- name: Install Python 3.12
run: uv python install 3.12
- name: Build
run: cd extract-python && uv build
- name: Publish
run: cd extract-python && uv publish
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false