forked from linode/linode_api4-python
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 827 Bytes
/
Copy pathpublish-pypi.yaml
File metadata and controls
31 lines (27 loc) · 827 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
name: release
on:
workflow_dispatch: null
release:
types: [ published ]
jobs:
pypi-release:
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
runs-on: ubuntu-latest
environment: pypi-release
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install Python deps
run: pip install -U wheel build certifi
- name: Build the package
run: make build
env:
LINODE_SDK_VERSION: ${{ github.event.release.tag_name }}
- name: Publish the release artifacts to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # pin@release/v1.14.0