Refactor gather mask application in attention kernels and scheduler #71
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
| # This workflow will: | |
| # - Create or update a GitHub release for the tag | |
| # - Build the DSL source distribution and universal wheel | |
| # - Upload the artifacts to the GitHub release | |
| # - Publish the same artifacts to PyPI | |
| name: Publish package | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| publish_package: | |
| name: Build and publish package | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install build twine | |
| - name: Build package artifacts | |
| run: python -m build | |
| - name: Create or update release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: ${{ github.ref_name }} | |
| generate_release_notes: true | |
| draft: false | |
| prerelease: false | |
| files: dist/* | |
| - name: Publish to PyPI | |
| env: | |
| TWINE_USERNAME: "__token__" | |
| TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
| run: | | |
| if [ -z "$TWINE_PASSWORD" ]; then | |
| echo "::error::PYPI_API_TOKEN secret not set; aborting publish."; exit 1 | |
| fi | |
| python -m twine upload dist/* |