Skip to content

Commit caae03e

Browse files
committed
chore: replace runs-on to ubuntu-20.04
1 parent dcece3d commit caae03e

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

.github/workflows/python-publish.yml

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,28 @@ on:
99

1010
jobs:
1111
deploy:
12-
13-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1413

1514
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

Comments
 (0)