Skip to content

Commit

Permalink
Merge pull request #30 from sarnold/release-pr
Browse files Browse the repository at this point in the history
workflow updates
  • Loading branch information
andreasvc authored May 5, 2021
2 parents 699767f + d1caa23 commit a732777
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,17 @@ jobs:
with:
path: dist/*.tar.gz

check_artifacts:
needs: [build_sdist, build_wheels]
defaults:
run:
shell: bash
name: Check artifacts are correct
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2

# note wheels should be in subdirectory <upload_name>
- name: Check number of downloaded artifacts
run: ls -R
29 changes: 23 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,30 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: cibw-wheels
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- name: Build sdist
run: |
pip install pep517
python -m pep517.build -s .
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

create_release:
needs: [cibw_wheels]
needs: [build_sdist, cibw_wheels]
runs-on: ubuntu-20.04

steps:
Expand All @@ -84,8 +103,6 @@ jobs:

# download all artifacts to project dir
- uses: actions/download-artifact@v2
with:
path: dist

- name: Generate changes file
uses: sarnold/gitchangelog-action@master
Expand All @@ -99,7 +116,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
name: Release v${{ env.VERSION }}
name: Release ${{ env.VERSION }}
body_path: CHANGES.md
draft: false
prerelease: false
Expand All @@ -110,4 +127,4 @@ jobs:
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages_dir: dist/cibw-wheels/
packages_dir: artifact/
2 changes: 1 addition & 1 deletion conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "pyre2" %}
{% set version = "0.3.5" %}
{% set version = "0.3.6" %}

package:
name: {{ name|lower }}
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from setuptools.command.build_ext import build_ext


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

# Convert distutils Windows platform specifiers to CMake -A arguments
PLAT_TO_CMAKE = {
Expand Down

0 comments on commit a732777

Please sign in to comment.