|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | deploy: |
12 | | - |
13 | | - runs-on: ubuntu-latest |
| 12 | + runs-on: ubuntu-20.04 |
14 | 13 |
|
15 | 14 | steps: |
16 | | - - uses: actions/checkout@v2 |
17 | | - - run: | |
18 | | - # Hack to get setup-python to work on act |
19 | | - if [ ! -f "/etc/lsb-release" ] ; then |
20 | | - echo "DISTRIB_RELEASE=18.04" > /etc/lsb-release |
21 | | - fi |
22 | | - - name: Set up Python |
23 | | - uses: actions/setup-python@v2 |
24 | | - with: |
25 | | - python-version: '3.6.x' |
26 | | - - name: Install dependencies |
27 | | - run: | |
28 | | - python -m pip install --upgrade pip |
29 | | - pip install setuptools wheel |
30 | | - pip install -r requirements.txt |
31 | | - - name: Build and publish |
32 | | - env: |
33 | | - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} |
34 | | - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} |
35 | | - run: | |
36 | | - python setup.py sdist bdist_wheel |
37 | | - pipx run twine upload dist/* |
| 15 | + - uses: actions/checkout@v2 |
| 16 | + - run: | |
| 17 | + # Hack to get setup-python to work on act |
| 18 | + if [ ! -f "/etc/lsb-release" ] ; then |
| 19 | + echo "DISTRIB_RELEASE=18.04" > /etc/lsb-release |
| 20 | + fi |
| 21 | + - name: Set up Python |
| 22 | + uses: actions/setup-python@v2 |
| 23 | + with: |
| 24 | + python-version: "3.6.x" |
| 25 | + - name: Install dependencies |
| 26 | + run: | |
| 27 | + python -m pip install --upgrade pip |
| 28 | + pip install setuptools wheel |
| 29 | + pip install -r requirements.txt |
| 30 | + - name: Build and publish |
| 31 | + env: |
| 32 | + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} |
| 33 | + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} |
| 34 | + run: | |
| 35 | + python setup.py sdist bdist_wheel |
| 36 | + pipx run twine upload dist/* |
0 commit comments