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 .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ docs_type: sphinx
git_platform: github.com
github_org: DiamondLightSource
package_name: daq_queuing_service
pypi: false
pypi: true
repo_name: daq-queuing-service
strict_typing: true
type_checker: pyright
16 changes: 16 additions & 0 deletions .github/workflows/_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
workflow_call:
jobs:
upload:
runs-on: ubuntu-latest
environment: release
steps:
- name: Download dist artifact
uses: actions/download-artifact@v7
with:
name: dist
path: dist
- name: Publish to PyPI using trusted publishing
uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: false
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ jobs:
dist:
uses: ./.github/workflows/_dist.yml

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

release:
needs: [dist, test, docs]
if: github.ref_type == 'tag'
Expand Down
Loading