Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main]
pull_request:
branches: [main]
branches: [dev, main]

permissions:
contents: write
Expand Down
41 changes: 39 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
Loading