Skip to content

Commit fef08c2

Browse files
committed
Publish v0.0.1
1 parent 01027cc commit fef08c2

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v2
1111

1212
- name: Set up Python version
13-
uses: actions/setup-python@v1
13+
uses: actions/setup-python@v2
1414
with:
1515
python-version: 3.8
1616

@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v2
2828

2929
- name: Set up Python version
30-
uses: actions/setup-python@v1
30+
uses: actions/setup-python@v2
3131
with:
3232
python-version: 3.8
3333

@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/checkout@v2
4545

4646
- name: Set up Python version
47-
uses: actions/setup-python@v1
47+
uses: actions/setup-python@v2
4848
with:
4949
python-version: 3.8
5050

@@ -65,7 +65,7 @@ jobs:
6565
- uses: actions/checkout@v2
6666

6767
- name: Set up Python ${{ matrix.python-version }}
68-
uses: actions/setup-python@v1
68+
uses: actions/setup-python@v2
6969
with:
7070
python-version: ${{ matrix.python-version }}
7171

@@ -82,3 +82,23 @@ jobs:
8282

8383
- name: Upload coverage report
8484
run: bash <(curl -s https://codecov.io/bash)
85+
86+
publish:
87+
runs-on: ubuntu-18.04
88+
89+
steps:
90+
- uses: actions/checkout@v2
91+
92+
- name: Set up Python version
93+
uses: actions/setup-python@v2
94+
with:
95+
python-version: 3.8
96+
97+
- name: Publish to PyPI
98+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
99+
run: |
100+
pip install --upgrade setuptools wheel twine
101+
python setup.py sdist bdist_wheel
102+
export TWINE_USERNAME=__token__
103+
export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }}
104+
twine upload dist/*

0 commit comments

Comments
 (0)