Skip to content

Commit

Permalink
Update ci_cd.yml remove PYPI step
Browse files Browse the repository at this point in the history
will be moved to a separate workflow

Signed-off-by: Sam Stepanyan <[email protected]>
  • Loading branch information
securestep9 authored Aug 24, 2024
1 parent ba75326 commit a2bb1ae
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,55 +50,6 @@ jobs:
name: dist
path: dist

publish-to-test-pypi:
name: Publish to Test PyPI

if: |
${{
github.repository == 'owasp/nettacker' &&
github.event_name == 'push' &&
github.ref_name == 'implement-package-publishing-poc' }}
# environment: test
needs:
- build-package
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Get package artifacts
uses: actions/download-artifact@v3
with:
name: dist
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/

publish-to-pypi:
name: Publish to PyPI
if: |
${{ github.repository == 'owasp/nettacker' &&
github.event_name == 'push' &&
github.ref_name == 'implement-package-publishing-poc' }}
# environment: release
needs:
- build-package
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Get package artifacts
uses: actions/download-artifact@v3
with:
name: dist
path: dist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

test-docker-image:
name: Test Docker image
Expand Down

0 comments on commit a2bb1ae

Please sign in to comment.