v0.8.1 #49
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: release | |
| on: | |
| release: | |
| types: [created] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| defaults: | |
| run: | |
| shell: bash | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-13, macos-14] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up QEMU | |
| if: runner.os == 'Linux' | |
| uses: docker/setup-qemu-action@v3 | |
| with: | |
| platforms: all | |
| - name: Initialize Submodules | |
| run: | | |
| git submodule update --init --recursive | |
| - name: Build Wheels | |
| uses: pypa/[email protected] | |
| - name: Upload Github Wheel Release Artifact | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: ./wheelhouse/*.whl | |
| file_glob: true | |
| tag: ${{ github.ref }} | |
| - name: Upload Wheels to PyPi | |
| run: | | |
| pipx run twine upload wheelhouse/* --skip-existing | |
| env: | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
| - name: Build Source | |
| if: runner.os == 'Linux' | |
| run: | | |
| pipx install build | |
| pipx run build --sdist | |
| - name: Upload Github Wheel Source Artifact | |
| if: runner.os == 'Linux' | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: ./dist/*.tar.gz | |
| file_glob: true | |
| tag: ${{ github.ref }} | |
| - name: Upload Source to PyPi | |
| if: runner.os == 'Linux' | |
| run: | | |
| pipx run twine upload dist/* --skip-existing | |
| env: | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} |