Skip to content

Commit

Permalink
Re-enable PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph committed Apr 17, 2024
1 parent 0c40f53 commit e6a9f2b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ docs_type: sphinx
git_platform: github.com
github_org: bluesky
package_name: ophyd_async
pypi: false
pypi: true
repo_name: ophyd-async
type_checker: pyright
17 changes: 17 additions & 0 deletions .github/workflows/_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
workflow_call:

jobs:
upload:
runs-on: ubuntu-latest
environment: release

steps:
- name: Download dist artifact
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Publish to PyPI using trusted publishing
uses: pypa/gh-action-pypi-publish@release/v1
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ jobs:
if: needs.check.outputs.branch-pr == ''
uses: ./.github/workflows/_dist.yml

pypi:
if: github.ref_type == 'tag'
needs: dist
uses: ./.github/workflows/_pypi.yml
permissions:
id-token: write

release:
if: github.ref_type == 'tag'
needs: [dist, docs]
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![CI](https://github.com/bluesky/ophyd-async/actions/workflows/ci.yml/badge.svg)](https://github.com/bluesky/ophyd-async/actions/workflows/ci.yml)
[![Coverage](https://codecov.io/gh/bluesky/ophyd-async/branch/main/graph/badge.svg)](https://codecov.io/gh/bluesky/ophyd-async)

[![PyPI](https://img.shields.io/pypi/v/ophyd-async.svg)](https://pypi.org/project/ophyd-async)
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)

# ophyd_async
Expand All @@ -10,8 +11,10 @@ Asynchronous Bluesky hardware abstraction code, compatible with control systems
This is where you should write a short paragraph that describes what your module does,
how it does it, and why people should use it.

<<<<<<< before updating
| Source | <https://github.com/bluesky/ophyd-async> |
| :-----------: | :-----------------------------------------------: |
| PyPI | `pip install ophyd-async` |
| Documentation | <https://bluesky.github.io/ophyd-async> |
| Releases | <https://github.com/bluesky/ophyd-async/releases> |

Expand Down

0 comments on commit e6a9f2b

Please sign in to comment.