-
-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (32 loc) · 924 Bytes
/
release.yml
File metadata and controls
41 lines (32 loc) · 924 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
name: Release
on:
release:
types:
- published
permissions: {}
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy to PyPi
environment:
name: release
url: https://pypi.org/project/aiogithubapi
permissions:
# Used to authenticate to PyPI via OIDC.
id-token: write
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v4.2.2
- name: 🛠 Set up Python
uses: actions/setup-python@v5.3.0
id: python
with:
python-version: "3.11"
- name: 📦 Install poetry
run: make install-poetry
- name: 🔢 Set version number
run: poetry version "${{ github.event.release.tag_name }}"
- name: 🛠 Build
run: poetry build --no-interaction
- name: 🚀 Publish to PyPi
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4