Create publish.yml #6
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: Upload Package (testing) | |
| on: | |
| release: | |
| types: [published] | |
| pull_request: | |
| branches: | |
| - '*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| release-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive # Initializes and fetches submodules | |
| fetch-depth: 0 # Needed for submodule hashes | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install the liburing | |
| run: | | |
| cd libs | |
| ./configure | |
| make | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "0.6.2" | |
| enable-cache: true | |
| - name: Build release distributions | |
| run: | | |
| uv sync --group dev | |
| uv build -v --no-binary | |
| - name: Upload distributions | |
| env: | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} # | |
| run: | | |
| python3 -m twine upload --repository testpypi dist/* |