diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a396f3..860910d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,25 +26,8 @@ jobs: - name: Run ruff run: | - poetry run ruff check . - poetry run ruff format --check + uv run ruff check . + uv run ruff format --check - name: Run pyright - run: poetry run pyright - - deploy: - needs: build-and-test - runs-on: macos-latest - if: github.ref == 'refs/heads/main' - steps: - - uses: actions/checkout@v4 - - - name: Install uv - uses: astral-sh/setup-uv@v4 - - - name: Build and Publish to PyPI - env: - POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} - run: | - uv build - uv publish \ No newline at end of file + run: uv run pyright diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6f90253 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Release + +on: + release: + types: [published] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Build and publish to PyPi + env: + UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + run: | + uv build + uv publish