Mercurial > public > bitcaviar-plus
comparison .github/workflows/python-publish.yml @ 18:d1f527020d54
Create python-publish.yml
committer: GitHub <noreply@github.com>
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 04 Nov 2021 10:31:29 +0100 |
parents | |
children | c75ee64c812c |
comparison
equal
deleted
inserted
replaced
17:25b0a9a206c4 | 18:d1f527020d54 |
---|---|
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 }} |