Skip to content

Commit 303e8e0

Browse files
committed
Restore build on tag
1 parent f9eae3d commit 303e8e0

File tree

2 files changed

+61
-27
lines changed

2 files changed

+61
-27
lines changed

.github/workflows/push.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,3 @@ jobs:
3737
3838
- name: Test with tox
3939
run: tox
40-
41-
release:
42-
runs-on: ubuntu-latest
43-
44-
if: startsWith(github.ref, 'refs/tags')
45-
46-
needs: test
47-
48-
steps:
49-
- uses: actions/checkout@master
50-
51-
- name: Set up Python 3.9
52-
uses: actions/setup-python@v1
53-
with:
54-
python-version: 3.9
55-
56-
- name: Install pypa/build
57-
run: python -m pip install build --user
58-
59-
- name: Build a binary wheel and a source tarball
60-
run: >-
61-
python -m build --sdist --wheel --outdir dist/ .
62-
63-
- name: Publish distribution to PyPI
64-
uses: pypa/gh-action-pypi-publish@master
65-
with:
66-
password: ${{ secrets.pypi_password }}

.github/workflows/tag.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
max-parallel: 5
14+
matrix:
15+
python-version:
16+
- 2.7
17+
- 3.6
18+
- 3.7
19+
- 3.8
20+
- 3.9
21+
22+
steps:
23+
- uses: actions/checkout@v1
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install tox tox-gh-actions
34+
35+
- name: Test with tox
36+
run: tox
37+
38+
release:
39+
runs-on: ubuntu-latest
40+
41+
needs: test
42+
43+
steps:
44+
- uses: actions/checkout@master
45+
46+
- name: Set up Python 3.9
47+
uses: actions/setup-python@v1
48+
with:
49+
python-version: 3.9
50+
51+
- name: Install pypa/build
52+
run: python -m pip install build --user
53+
54+
- name: Build a binary wheel and a source tarball
55+
run: >-
56+
python -m build --sdist --wheel --outdir dist/ .
57+
58+
- name: Publish distribution to PyPI
59+
uses: pypa/gh-action-pypi-publish@master
60+
with:
61+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)