18
|
1 name: Upload Python Package
|
|
2
|
|
3 on:
|
|
4 push:
|
|
5 tags: [ '*.*.*' ]
|
|
6
|
|
7 jobs:
|
|
8 deploy:
|
|
9
|
|
10 runs-on: ubuntu-latest
|
|
11
|
|
12 steps:
|
|
13 - uses: actions/checkout@v2
|
|
14 - name: Set up Python
|
|
15 uses: actions/setup-python@v2
|
|
16 with:
|
|
17 python-version: '3.x'
|
|
18 - name: Install dependencies
|
|
19 run: |
|
|
20 python -m pip install --upgrade pip
|
|
21 pip install build
|
|
22 - name: Build package
|
|
23 run: python -m build
|
|
24 - name: Publish package
|
|
25 uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
|
26 with:
|
|
27 user: __token__
|
|
28 password: ${{ secrets.PYPI_API_TOKEN }}
|