-
Notifications
You must be signed in to change notification settings - Fork 383
35 lines (33 loc) · 1.09 KB
/
pre-release.yml
File metadata and controls
35 lines (33 loc) · 1.09 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
name: Publish SDK to Test PyPI
on: [workflow_dispatch]
env:
PYTHON_VERSION: 3.9
jobs:
publish-sdk-test-pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: splunk-test-pypi
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
- name: Set up uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78
with:
version: 0.11.6
activate-environment: true
enable-cache: true
- name: Install dependencies
run: SDK_DEPS_GROUP="release" make uv-sync-ci
- name: Build packages for distribution
run: uv build
- name: Publish packages to Test PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
with:
repository-url: https://test.pypi.org/legacy/