From a13c0a893b1980b63c2d2939339cc13460bf00f0 Mon Sep 17 00:00:00 2001 From: Zaki Ali Date: Fri, 23 Aug 2024 17:35:50 -0700 Subject: [PATCH] Add github action for build and release --- .github/workflows/pypi_release.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pypi_release.yaml diff --git a/.github/workflows/pypi_release.yaml b/.github/workflows/pypi_release.yaml new file mode 100644 index 0000000..a75ec70 --- /dev/null +++ b/.github/workflows/pypi_release.yaml @@ -0,0 +1,21 @@ +name: PYPI Release + +on: [push, pull_request] + +jobs: + setup_uv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install UV + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Source Cargo Environment + run: source $HOME/.cargo/env + + - name: Build with UV + run: uvx --from build pyproject-build --installer uv + + # - name: Upload to PyPi + # run: uvx twine upload dist/* \ No newline at end of file