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
44 changes: 0 additions & 44 deletions .github/workflows/_pypi_publish.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/_pypi_test_publish.yaml

This file was deleted.

50 changes: 43 additions & 7 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ jobs:
## Uploads the package to test.pypi.org on master if triggered by
## a regular commit/push.
##
## Trusted Publishing does not support reusable workflows, so the publish
## step runs inline here rather than in a called workflow. See
## https://github.com/pypi/warehouse/issues/11096
##
UploadTestPyPI:
if: |
(
Expand All @@ -92,11 +96,29 @@ jobs:
- Test
- CodeQL
name: Upload current version to Test PyPI
uses: ./.github/workflows/_pypi_test_publish.yaml
secrets:
API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for OIDC publishing
environment:
name: testpypi
url: https://test.pypi.org/p/python-cmethods
steps:
- name: Download all the distributions
uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/

- name: Publish package distributions to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

## Upload the python-kraken-sdk to Production PyPI
## Upload the python-cmethods package to Production PyPI
##
## Trusted Publishing does not support reusable workflows, so the publish
## step runs inline here rather than in a called workflow. See
## https://github.com/pypi/warehouse/issues/11096
##
UploadPyPI:
if: |
Expand All @@ -109,6 +131,20 @@ jobs:
- Test
- CodeQL
name: Upload the current release to PyPI
uses: ./.github/workflows/_pypi_publish.yaml
secrets:
API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for OIDC publishing
environment:
name: pypi
url: https://pypi.org/p/python-cmethods
steps:
- name: Download all the distributions
uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://upload.pypi.org/legacy/
Loading