Update ci_cd.yml remove PYPI step

will be moved to a separate workflow

Signed-off-by: Sam Stepanyan <sam.stepanyan@owasp.org>
This commit is contained in:
Sam Stepanyan 2024-08-24 23:12:03 +01:00 committed by GitHub
parent ba7532606c
commit a2bb1ae6e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 49 deletions

View File

@ -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