From d08693f4ebe30de5d48eb526e8676b10ca781255 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 21 May 2024 20:56:11 -0700 Subject: [PATCH] Create release-pypi-test.yml --- .github/workflows/release-pypi-test.yml | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release-pypi-test.yml diff --git a/.github/workflows/release-pypi-test.yml b/.github/workflows/release-pypi-test.yml new file mode 100644 index 000000000..0ae940ad6 --- /dev/null +++ b/.github/workflows/release-pypi-test.yml @@ -0,0 +1,32 @@ +name: Release to PyPI + +on: + push: + branches: + - main # or whatever branch you want to use + - dev + +jobs: + release: + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/openwebui + permissions: + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + - uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: Build + run: | + python -m pip install --upgrade pip + pip install build + python -m build . + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1