-
Notifications
You must be signed in to change notification settings - Fork 383
34 lines (32 loc) · 982 Bytes
/
release.yml
File metadata and controls
34 lines (32 loc) · 982 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
name: Publish SDK to PyPI
on:
release:
types: [published]
env:
PYTHON_VERSION: 3.13
jobs:
publish-to-pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: splunk-pypi
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: ./.github/actions/setup-sdk-environment
with:
python-version: ${{ env.PYTHON_VERSION }}
deps-group: release
- name: Build packages for distribution
run: uv build
- name: Publish packages to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
with:
repository-url: https://test.pypi.org/legacy/
- name: Generate API reference
run: make -C ./docs html
- name: Upload docs artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: python-sdk-docs
path: docs/_build/html