Skip to content

Commit 73f4916

Browse files
committed
Add CD workflow for Test PyPI
1 parent 4a2b8d6 commit 73f4916

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/cd.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CD
2+
on: [workflow_dispatch]
3+
4+
jobs:
5+
test-pypi-deploy:
6+
name: Deploy to Test PyPI
7+
runs-on: ubuntu-latest
8+
permissions:
9+
id-token: write
10+
environment:
11+
name: splunk-test-pypi
12+
steps:
13+
- name: Checkout source
14+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
15+
- name: Set up Python
16+
uses: actions/setup-python@3d1e2d2ca0a067f27da6fec484fce7f5256def85
17+
with:
18+
python-version: 3.9
19+
- name: Install dependencies
20+
run: pip install build
21+
- name: Build package
22+
run: python -m build
23+
- name: Publish package to Test PyPI
24+
uses: pypa/gh-action-pypi-publish@d417ba7e7683fa9104c42abe611c1f2c93c0727d
25+
with:
26+
user: __token__
27+
password: ${{ secrets.TEST_PYPI_PASSWORD }}
28+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)