Skip to content

Commit

Permalink
some cleanup. separating and Upgrading test.pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
jessdtate committed Oct 11, 2023
1 parent 3554a58 commit 0f2b8fd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/pypublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
jobs:
build-wheel:
uses: ./.github/workflows/pypackage.yml
upload_pypi:
name: Publish build to TestPyPI and PyPI
upload_testpypi:
name: Publish build to TestPyPI
needs: [build-wheel]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/UncertainSCI
url: https://test.pypi.org/p/UncertainSCI
permissions:
id-token: write
steps:
Expand All @@ -25,14 +25,21 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TESTPYPI_API_TOKEN }}
# configuration-path: ${{ inputs.config-path }}
# secrets: inherit
upload_pypi:
name: Publish build to PyPI
needs: [build-wheel, upload_testpypi]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/UncertainSCI
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
# with:
# configuration-path: ${{ inputs.config-path }}
# secrets: inherit
5 changes: 0 additions & 5 deletions .github/workflows/testpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@ on: #[push, pull_request]
jobs:
buildwheel:
uses: ./.github/workflows/pypackage.yml
# with:
# configuration-path: ${{ inputs.config-path }}
# secrets:
# envPAT: ${{ secrets.envPAT }}

0 comments on commit 0f2b8fd

Please sign in to comment.