Docker Plugin API in Python
Jacek Kowalski
2020-05-03 b3abf94b50dfde6f5362d5f7e9d2bc4d748baf3c
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
b3abf9 14         with:
JK 15           fetch-depth: 0
881ffe 16
JK 17       - name: Set up Python
18         uses: actions/setup-python@v1
19         with:
20           python-version: 3.x
21
22       - name: Install dependencies
23         run: |
24           pip install setuptools wheel twine
25
26       - name: Build package
27         run: python setup.py sdist bdist_wheel
28
29       - name: Publish package
30         env:
31           TWINE_USERNAME: '__token__'
32           TWINE_PASSWORD: '${{ secrets.PYPI_TOKEN }}'
33         run: twine upload dist/*