Bumped up the version #52
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish packages to PyPI | |
| on: | |
| push: | |
| tags: | |
| - "[0-9]+.[0-9]+.[0-9]+" | |
| - "[0-9]+.[0-9]+.[0-9]+.post[0-9]+" | |
| - "[0-9]+.[0-9]+.[0-9]+[a-b][0-9]+" | |
| - "[0-9]+.[0-9]+.[0-9]+rc[0-9]+" | |
| jobs: | |
| binary-wheels: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - ubuntu-24.04-arm | |
| - windows-latest | |
| - windows-11-arm | |
| - macos-13 | |
| - macos-latest | |
| runs-on: ${{ matrix.os }} | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build wheels | |
| uses: pypa/[email protected] | |
| env: | |
| CBOR2_BUILD_C_EXTENSION: "1" | |
| CIBW_SKIP: "*t-*" | |
| CIBW_ARCHS: "auto64" | |
| CIBW_TEST_GROUPS: "test" | |
| CIBW_TEST_COMMAND: "python -m pytest {project}/tests" | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: wheels-${{ matrix.os }} | |
| path: wheelhouse/*.whl | |
| sdist-purewheel: | |
| runs-on: ubuntu-latest | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - name: Install dependencies | |
| run: pip install build | |
| - name: Create sdist and pure-Python wheel | |
| run: python -m build . | |
| env: | |
| CBOR2_BUILD_C_EXTENSION: "0" | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: sdist | |
| path: dist/* | |
| publish: | |
| needs: | |
| - binary-wheels | |
| - sdist-purewheel | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Download generated packaging artifacts | |
| uses: actions/download-artifact@v7 | |
| - name: Move the packages to dist/ | |
| run: | | |
| mkdir dist | |
| mv */*.whl */*.tar.gz dist | |
| - name: Upload packages | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| release: | |
| name: Create a GitHub release | |
| needs: | |
| - binary-wheels | |
| - sdist-purewheel | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: changelog | |
| uses: agronholm/release-notes@v1 | |
| with: | |
| path: docs/versionhistory.rst | |
| - uses: ncipollo/release-action@v1 | |
| with: | |
| body: ${{ steps.changelog.outputs.changelog }} |