Skip to content

Merge pull request #235 from ASFHyP3/develop #39

Merge pull request #235 from ASFHyP3/develop

Merge pull request #235 from ASFHyP3/develop #39

Workflow file for this run

name: Distribute to PyPI
on:
push:
tags:
- v*
jobs:
call-version-info-workflow:
uses: ASFHyP3/actions/.github/workflows/[email protected]
distribute:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: mamba-org/provision-with-micromamba@v15
- name: Build distribution
id: build
run: |
python -m build
- name: upload to PyPI.org
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.TOOLS_PYPI_PAK }}
verify-distribution:
runs-on: ubuntu-latest
needs:
- call-version-info-workflow
- distribute
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: mamba-org/provision-with-micromamba@v15
- name: Ensure hyp3_sdk v${{ needs.call-version-info-workflow.outputs.version }}} is pip installable
run: |
python -m pip install hyp3_sdk==${{ needs.call-version-info-workflow.outputs.version_tag }}