Skip to content

Commit 67ce983

Browse files
committed
github: pull workflow updates from pkgcore
1 parent 1b993f2 commit 67ce983

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/doc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
- name: Checkout code
1212
uses: actions/checkout@v2
1313

14-
- name: Set up Python 3.8
14+
- name: Set up Python 3.9
1515
uses: actions/setup-python@v2
1616
with:
17-
python-version: 3.8
17+
python-version: 3.9
1818

1919
- name: Configure pip cache
2020
uses: actions/cache@v2

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Checkout code
1313
uses: actions/checkout@v2
1414

15-
- name: Set up Python 3.8
15+
- name: Set up Python 3.9
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.8
18+
python-version: 3.9
1919

2020
- name: Install dependencies
2121
run: |
@@ -49,11 +49,17 @@ jobs:
4949
twine check dist/*
5050
wheel2json dist/*.whl
5151
52-
- name: Upload files for tagged releases
52+
- name: Upload to PyPI
5353
env:
5454
TWINE_USERNAME: __token__
5555
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
56-
# only upload files for tagged releases
5756
if: startsWith(github.ref, 'refs/tags/')
5857
run: |
5958
twine upload dist/*
59+
60+
- name: Create GitHub release
61+
uses: softprops/action-gh-release@v1
62+
if: startsWith(github.ref, 'refs/tags/')
63+
with:
64+
files: dist/*.tar.gz
65+
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)