Skip to content

Commit

Permalink
WiP: Publishing: Add pypi job. Add verbose setting to pypi uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
corey committed Dec 11, 2023
1 parent b40239b commit 9536b90
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ jobs:
password: ${{ secrets.PYPI_TEST_SERVER_API_TOKEN_OM }}
repository-url: https://test.pypi.org/legacy/
verify-metadata: false
verbose: true

- name: Retrieve Wheels
uses: actions/download-artifact@v3
Expand All @@ -251,6 +252,48 @@ jobs:
password: ${{ secrets.PYPI_TEST_SERVER_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
verify-metadata: false
verbose: true

puublish_to_pypi:
needs: build
runs-on: ubuntu-latest
if: ${{ github.event.inputs.publish_pypi == 'true' }}
steps:
- name: Retrieve Wheels
uses: actions/download-artifact@v3
with:
name: om_wheels
path: om_wheels

- name: List OM Wheels
run: ls -al ./om_wheels

- name: Push To PyPi Test Server
if: ${{ github.event.inputs.origen_metal_python_package == 'true' }}
uses: pypa/[email protected]
with:
packages-dir: om_wheels
password: ${{ secrets.PYPI_OM_API_TOKEN }}
verify-metadata: false
verbose: true

- name: Retrieve Wheels
uses: actions/download-artifact@v3
with:
name: origen_wheels
path: origen_wheels

- name: List Origen Wheels
run: ls -al ./origen_wheels

- name: Push To PyPi Test Server
if: ${{ github.event.inputs.origen_python_package == 'true' }}
uses: pypa/[email protected]
with:
packages-dir: origen_wheels
password: ${{ secrets.PYPI_ORIGEN_API_TOKEN }}
verify-metadata: false
verbose: true

release:
needs: build
Expand Down

0 comments on commit 9536b90

Please sign in to comment.