From 7d2d59f1aa7141d3d5554b28266b6b1f3063795f Mon Sep 17 00:00:00 2001 From: Melek Derman <48313913+melekderman@users.noreply.github.com> Date: Sat, 23 May 2026 02:13:33 -0700 Subject: [PATCH 1/2] wip ci9 --- .github/workflows/python-publish.yml | 41 ++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a566439..6bc8d06 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -5,10 +5,47 @@ on: types: [published] jobs: - build-n-publish: - name: Build and publish to PyPI + publish-testpypi: + name: Publish to TestPyPI runs-on: ubuntu-latest + if: github.event.release.target_commitish == 'dev' + + environment: + name: testpypi + url: https://test.pypi.org/p/epics/ + + permissions: + id-token: write + contents: read + + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Install build dependencies + run: python -m pip install --upgrade build + + - name: Build wheel and source distribution + run: python -m build + + - name: Publish to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + + publish-pypi: + name: Publish to PyPI + runs-on: ubuntu-latest + + if: github.event.release.target_commitish == 'main' + environment: name: pypi url: https://pypi.org/p/epics/ From dd1c02da3f7e44c4a7890bb23ace7c60280f4e1e Mon Sep 17 00:00:00 2001 From: Melek Derman <48313913+melekderman@users.noreply.github.com> Date: Sat, 23 May 2026 02:17:09 -0700 Subject: [PATCH 2/2] wip ci11 --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6759d48..f061dbc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,7 +4,7 @@ on: push: branches: [main] pull_request: - branches: [main] + branches: [dev, main] permissions: contents: write