-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.23 KB
/
ci.yml
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
41
42
43
44
45
46
47
48
49
50
name: Upload Python Package to testPyPi
on:
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: develop
token: ${{ github.token }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
git config user.name github-actions
git config user.email [email protected]
python -m pip install --upgrade pip
pip install build
pip install bumpver
pip install mkdocs
pip install mkdocstrings[python]>=0.18
pip install mkdocs-gen-files
pip install mkdocs-material
pip install mkdocs-literate-nav
pip install Pygments>=2.12
# - name: Update patch version
# run: |
# git checkout
# bumpver update --patch --dry
# bumpver update --patch
- name: Build package
run: python -m build
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/