Skip to content

Publish on PyPI - b13f2614d7b41efddd2293d67a900aa968af5f5d #8

Publish on PyPI - b13f2614d7b41efddd2293d67a900aa968af5f5d

Publish on PyPI - b13f2614d7b41efddd2293d67a900aa968af5f5d #8

Workflow file for this run

name: Publish on PyPI
run-name: Publish on PyPI - ${{ github.sha }}
on:
release:
types: [published]
jobs:
publish_on_pypi:
name: Publish on PyPI
if: github.event.release.prerelease == false
runs-on: ubuntu-20.04
environment:
name: pypi
url: https://pypi.org/project/dmri-amico
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Download windows_AMD64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_windows_AMD64
path: dist
search_artifacts: true
- name: Download windows_x86 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_windows_x86
path: dist
search_artifacts: true
- name: Download macos_x86_64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_macos_x86_64
path: dist
search_artifacts: true
- name: Download macos_arm64 wheels
uses: dawidd6/[email protected]
with:
workflow: macos_arm64_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_macos_arm64
path: dist
search_artifacts: true
- name: Download linux_x86_64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_linux_x86_64
path: dist
search_artifacts: true
- name: Download linux_aarch64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_linux_aarch64
path: dist
search_artifacts: true
- name: Download source distribution
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: sdist
path: dist
search_artifacts: true
- name: Publish on PyPI
uses: pypa/[email protected]
with:
skip-existing: true
verbose: true
print-hash: true
publish_on_pypi_test:
name: Publish on PyPI Test
if: github.event.release.prerelease == true && contains(github.event.release.tag_name, 'rc')
runs-on: ubuntu-20.04
environment:
name: testpypi
url: https://test.pypi.org/project/dmri-amico
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Download windows_AMD64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_windows_AMD64
path: dist
search_artifacts: true
- name: Download windows_x86 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_windows_x86
path: dist
search_artifacts: true
- name: Download macos_x86_64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_macos_x86_64
path: dist
search_artifacts: true
- name: Download macos_arm64 wheels
uses: dawidd6/[email protected]
with:
workflow: macos_arm64_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_macos_arm64
path: dist
search_artifacts: true
- name: Download linux_x86_64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_linux_x86_64
path: dist
search_artifacts: true
- name: Download linux_aarch64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_linux_aarch64
path: dist
search_artifacts: true
- name: Download source distribution
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: sdist
path: dist
search_artifacts: true
- name: Publish on PyPI Test
uses: pypa/[email protected]
with:
repository_url: https://test.pypi.org/legacy/
skip-existing: true
verbose: true
print-hash: true