Debian Codegraph @

.github/workflows/release.yml

raw
1
2 name: Release
3
4 on:
5 release:
6 types:
7 - published
8
9 permissions: {}
10
11 jobs:
12 build:
13 runs-on: ubuntu-latest
14 name: Build
15 steps:
16 - name: 📥 Checkout the repository
17 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18
19 - name: 🛠 Set up Python
20 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
21 id: python
22 with:
23 python-version-file: .python-version
24
25 - name: Install uv
26 uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
27 with:
28 version: "0.10.6"
29
30 - name: Set version number
31 run: scripts/set-version "${{ github.event.release.tag_name }}"
32
33 - name: Build
34 run: scripts/build
35
36 - name: Upload dists
37 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
38 with:
39 name: "dist"
40 path: "dist/"
41 if-no-files-found: error
42 retention-days: 5
43
44 publish:
45 name: Publish to PyPI
46 needs: [build]
47 runs-on: ubuntu-latest
48 environment:
49 name: release
50 url: https://pypi.org/project/aiogithubapi
51 permissions:
52 id-token: write
53 steps:
54 - name: Download dists
55 uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
56 with:
57 name: "dist"
58 path: "dist/"
59
60 - name: 🚀 Publish to PyPi
61 uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0