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