diff options
author | Tim Harder <radhermit@gmail.com> | 2021-08-05 03:10:30 -0600 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2021-08-05 03:14:03 -0600 |
commit | a4a0cebb45245b9fd80e946b1e54bfcbbccade02 (patch) | |
tree | bac635306b3d103b57248f85c7b6211610af175f /.github | |
parent | add initial release guide (diff) | |
download | snakeoil-a4a0cebb45245b9fd80e946b1e54bfcbbccade02.tar.gz snakeoil-a4a0cebb45245b9fd80e946b1e54bfcbbccade02.tar.bz2 snakeoil-a4a0cebb45245b9fd80e946b1e54bfcbbccade02.zip |
github: pull release workflow updates from pkgcheck
And bump to manylinux-2.24 while dropping i686 wheel builds.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64fc7422..25ea0dda 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,17 +39,17 @@ jobs: python setup.py build_py -i - name: Build wheels - uses: joerick/cibuildwheel@v1.10.0 + uses: joerick/cibuildwheel@v2.0.1 with: output-dir: dist env: CIBW_BUILD: cp38-* cp39-* cp310-* - CIBW_ARCHS_LINUX: x86_64 i686 - CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 - CIBW_MANYLINUX_I686_IMAGE: manylinux2014 + CIBW_ARCHS_LINUX: x86_64 + CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_24 CIBW_BEFORE_BUILD: pip install -r {project}/requirements/dist.txt CIBW_BEFORE_TEST: pip install -r {project}/requirements/test.txt - CIBW_TEST_COMMAND: py.test {project}/tests + CIBW_ENVIRONMENT: PY_COLORS=1 + CIBW_TEST_COMMAND: pytest -v {project}/tests - name: Output dist file info run: | @@ -62,7 +62,7 @@ jobs: twine check dist/* wheel2json dist/*.whl - - name: Upload files for tagged releases + - name: Upload to PyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} @@ -70,3 +70,10 @@ jobs: if: startsWith(github.ref, 'refs/tags/') run: | twine upload dist/* + + - name: Create GitHub release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: dist/*.tar.gz + fail_on_unmatched_files: true |