diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 73b21e5..b3b1540 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -1,20 +1,31 @@ name: Build & publish to pypi on: - release: - types: [published] + push: + branches: + - feat/uv + # release: + # types: [published] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - uses: abatilo/actions-poetry@v2 - - run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} - - name: Publish package - run: poetry publish --build + - uses: actions/checkout@v4 + - name: Set up uv + run: curl -LsSf https://astral.sh/uv/0.3.0/install.sh | sh + - name: Set up Python 3.10 + run: uv python install 3.10 + - name: Build package + run: uvx --from build pyproject-build --installer uv + + # - uses: actions/checkout@v3 + # - uses: actions/setup-python@v4 + # with: + # python-version: "3.10" + # - uses: abatilo/actions-poetry@v2 + # - run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + # - name: Publish package + # run: poetry publish --build # For testing locally, replace pypi with testpypi # - run: poetry config repositories.testpypi https://test.pypi.org/legacy/ # - run: poetry config pypi-token.testpypi ${{ secrets.PYPI_API_TOKEN }}