Merge pull request #5 from sinricpro/2.0.0-dev #2
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: Build wheel and upload release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build-and-upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install build deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install build | |
| - name: Build wheel | |
| run: | | |
| python -m build --wheel --outdir dist | |
| - name: Upload release asset | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: dist/*.whl | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |