From 84cfb423a4ac39e3cdb9847d6721e841a440c053 Mon Sep 17 00:00:00 2001 From: Gheorghita Hurmuz Date: Wed, 9 Apr 2025 12:48:18 +0300 Subject: [PATCH] infra: add cd --- .github/workflows/publish.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..07664e7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,37 @@ +name: Build and publish + +on: + workflow_dispatch: {} + push: + branches: + - main + +jobs: + build-and-publish: + name: Build and publish + runs-on: "ubuntu-24.04" + + steps: + - uses: actions/checkout@v4 + + - uses: astral-sh/setup-uv@v5 + + - uses: actions/setup-python@v5 + with: + python-version-file: ".python-version" + + - name: Setup venv + run: | + uv venv + uv sync --all-extras + + - name: Build + run: | + uv build + + - name: Publish + run: | + uv publish + env: + UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} +