Docker Plugin API in Python
Jacek Kowalski
2020-05-03 881ffe51002a5d121a49cf05042e9b77a24b660f
commit | author | age
881ffe 1 name: Publish Python package
JK 2
3 on:
4   push:
5     tags:
6       - 'v[0-9]+.*'
7
8 jobs:
9   deploy:
10     runs-on: ubuntu-latest
11     steps:
12       - name: Checkout code
13         uses: actions/checkout@v2
14
15       - name: Set up Python
16         uses: actions/setup-python@v1
17         with:
18           python-version: 3.x
19
20       - name: Install dependencies
21         run: |
22           pip install setuptools wheel twine
23
24       - name: Build package
25         run: python setup.py sdist bdist_wheel
26
27       - name: Publish package
28         env:
29           TWINE_USERNAME: '__token__'
30           TWINE_PASSWORD: '${{ secrets.PYPI_TOKEN }}'
31         run: twine upload dist/*