-
Notifications
You must be signed in to change notification settings - Fork 383
40 lines (39 loc) · 1.12 KB
/
release.yml
File metadata and controls
40 lines (39 loc) · 1.12 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
36
37
38
39
40
name: Release
on:
release:
types: [published]
jobs:
publish:
name: Deploy release to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: splunk-pypi
steps:
- name: Checkout source
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Set up Python
uses: actions/setup-python@3d1e2d2ca0a067f27da6fec484fce7f5256def85
with:
python-version: 3.9
- name: Install dependencies
run: pip install build
- name: Build package
run: python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@d417ba7e7683fa9104c42abe611c1f2c93c0727d
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
- name: Install tox
run: pip install tox
- name: Generate API docs
run: |
rm -rf ./docs/_build
tox -e docs
- name: Docs Upload
uses: actions/upload-artifact@de65e23aa2b7e23d713bb51fbfcb6d502f8667d8
with:
name: python_sdk_docs
path: docs/_build/html