Docker Plugin API in Python
Jacek Kowalski
2020-05-03 881ffe51002a5d121a49cf05042e9b77a24b660f
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
name: Publish Python package
 
on:
  push:
    tags:
      - 'v[0-9]+.*'
 
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
 
      - name: Set up Python
        uses: actions/setup-python@v1
        with:
          python-version: 3.x
 
      - name: Install dependencies
        run: |
          pip install setuptools wheel twine
 
      - name: Build package
        run: python setup.py sdist bdist_wheel
 
      - name: Publish package
        env:
          TWINE_USERNAME: '__token__'
          TWINE_PASSWORD: '${{ secrets.PYPI_TOKEN }}'
        run: twine upload dist/*