Skip to content

Commit a732777

Browse files
authored
Merge pull request #30 from sarnold/release-pr
workflow updates
2 parents 699767f + d1caa23 commit a732777

File tree

4 files changed

+40
-9
lines changed

4 files changed

+40
-9
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,17 @@ jobs:
8282
with:
8383
path: dist/*.tar.gz
8484

85+
check_artifacts:
86+
needs: [build_sdist, build_wheels]
87+
defaults:
88+
run:
89+
shell: bash
90+
name: Check artifacts are correct
91+
runs-on: ubuntu-20.04
92+
steps:
93+
- uses: actions/checkout@v2
94+
- uses: actions/download-artifact@v2
95+
96+
# note wheels should be in subdirectory <upload_name>
97+
- name: Check number of downloaded artifacts
98+
run: ls -R

.github/workflows/release.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,30 @@ jobs:
5959
6060
- uses: actions/upload-artifact@v2
6161
with:
62-
name: cibw-wheels
6362
path: ./wheelhouse/*.whl
6463

64+
build_sdist:
65+
name: Build source distribution
66+
runs-on: ubuntu-latest
67+
steps:
68+
- uses: actions/checkout@v2
69+
70+
- uses: actions/setup-python@v2
71+
name: Install Python
72+
with:
73+
python-version: '3.8'
74+
75+
- name: Build sdist
76+
run: |
77+
pip install pep517
78+
python -m pep517.build -s .
79+
80+
- uses: actions/upload-artifact@v2
81+
with:
82+
path: dist/*.tar.gz
83+
6584
create_release:
66-
needs: [cibw_wheels]
85+
needs: [build_sdist, cibw_wheels]
6786
runs-on: ubuntu-20.04
6887

6988
steps:
@@ -84,8 +103,6 @@ jobs:
84103

85104
# download all artifacts to project dir
86105
- uses: actions/download-artifact@v2
87-
with:
88-
path: dist
89106

90107
- name: Generate changes file
91108
uses: sarnold/gitchangelog-action@master
@@ -99,7 +116,7 @@ jobs:
99116
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100117
with:
101118
tag_name: ${{ env.VERSION }}
102-
name: Release v${{ env.VERSION }}
119+
name: Release ${{ env.VERSION }}
103120
body_path: CHANGES.md
104121
draft: false
105122
prerelease: false
@@ -110,4 +127,4 @@ jobs:
110127
with:
111128
user: __token__
112129
password: ${{ secrets.pypi_password }}
113-
packages_dir: dist/cibw-wheels/
130+
packages_dir: artifact/

conda.recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "pyre2" %}
2-
{% set version = "0.3.5" %}
2+
{% set version = "0.3.6" %}
33

44
package:
55
name: {{ name|lower }}

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from setuptools.command.build_ext import build_ext
1010

1111

12-
# update the version both here and in conda.recipe/meta.yaml
13-
__version__ = '0.3.5'
12+
# update the release version both here and in conda.recipe/meta.yaml
13+
__version__ = '0.3.6'
1414

1515
# Convert distutils Windows platform specifiers to CMake -A arguments
1616
PLAT_TO_CMAKE = {

0 commit comments

Comments
 (0)