-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (49 loc) · 1.44 KB
/
release.yaml
File metadata and controls
60 lines (49 loc) · 1.44 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
50
51
52
53
54
55
56
57
58
59
60
name: release
on:
push:
tags:
- "v*"
permissions:
contents: read
jobs:
test:
uses: ./.github/workflows/test.yaml
secrets: inherit
build:
runs-on: ubuntu-latest
needs: test
steps:
- name: Check out python-select-ai repository code
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.13"
- name: Build release distributions
run: |
python -m pip install --upgrade pip build twine
python -m build
twine check dist/*
- name: Upload release distributions
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: release-distributions
path: dist/
if-no-files-found: error
publish:
runs-on: ubuntu-latest
needs: build
environment:
name: pypi
url: https://pypi.org/p/select_ai
permissions:
contents: read
id-token: write
steps:
- name: Download release distributions
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: release-distributions
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1