Skip to content

Commit 696a97b

Browse files
authored
Merge pull request #7 from Sholofly/features/update-workflows
Update workflows
2 parents ca9b856 + d9b98ec commit 696a97b

3 files changed

Lines changed: 36 additions & 7 deletions

File tree

.github/workflows/build-on-pr.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Python 🐍 distribution 📦 to Pypi
2+
on:
3+
pull_request:
4+
branches:
5+
- develop
6+
7+
jobs:
8+
build:
9+
name: Publish Python 🐍 distribution 📦 to Pypi
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Python 3.8
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.8
17+
- name: Install pypa/build
18+
run: >-
19+
python -m
20+
pip install
21+
build
22+
--user
23+
- name: Build a binary wheel and a source tarball
24+
run: >-
25+
python -m
26+
build
27+
--sdist
28+
--wheel
29+
--outdir dist/

.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
jobs:
77
build-n-publish:
88
name: Publish Python 🐍 distribution 📦 to Pypi
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-20.04
1010
steps:
1111
- uses: actions/checkout@master
12-
- name: Set up Python 3.7
12+
- name: Set up Python 3.8
1313
uses: actions/setup-python@v1
1414
with:
15-
python-version: 3.7
15+
python-version: 3.8
1616
- name: Install pypa/build
1717
run: >-
1818
python -m

.github/workflows/publish-to-test-pypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ name: Publish beta Python 🐍 distributions 📦 to TestPyPI
22
on:
33
push:
44
tags:
5-
- 'v*.*.*b*'
5+
- '*.*.*b*'
66

77
jobs:
88
build-n-publish:
99
name: Publish beta Python 🐍 distributions 📦 to TestPyPI
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-20.04
1111
steps:
1212
- uses: actions/checkout@master
13-
- name: Set up Python 3.7
13+
- name: Set up Python 3.8
1414
uses: actions/setup-python@v1
1515
with:
16-
python-version: 3.7
16+
python-version: 3.8
1717
- name: Install pypa/build
1818
run: >-
1919
python -m

0 commit comments

Comments
 (0)