-
-
Notifications
You must be signed in to change notification settings - Fork 18
61 lines (50 loc) · 1.33 KB
/
release.yml
File metadata and controls
61 lines (50 loc) · 1.33 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
61
name: Release
on:
release:
types:
- published
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v5.0.0
- name: 🛠 Set up Python
uses: actions/setup-python@v6.0.0
id: python
with:
python-version: "3.14"
- name: Install uv
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
with:
version: "0.9.8"
- name: Set version number
run: scripts/set-version "${{ github.event.release.tag_name }}"
- name: Build
run: scripts/build
- name: Upload dists
uses: actions/upload-artifact@v5.0.0
with:
name: "dist"
path: "dist/"
if-no-files-found: error
retention-days: 5
publish:
name: Publish to PyPI
needs: [build]
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/project/aiogithubapi
permissions:
id-token: write
steps:
- name: Download dists
uses: actions/download-artifact@v6.0.0
with:
name: "dist"
path: "dist/"
- name: 🚀 Publish to PyPi
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0