From 2c57090b6cd897c570974d8be440b4d77f25e260 Mon Sep 17 00:00:00 2001 From: Dominik Winecki Date: Sun, 18 Aug 2024 17:01:50 -0400 Subject: [PATCH] Publish ci --- .github/workflows/publish.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..6568b50 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,35 @@ +name: Publish + +-- Push vidformer-py to PyPI using Flit + +on: + release: + types: [published] + +jobs: + + publish-py: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flit + + - name: Build and publish + run: | + pushd vidformer-py + flit build + flit publish + popd + env: + FLIT_USERNAME: __token__ + FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}