mirror of https://github.com/OWASP/Nettacker.git
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:
parent
ba7532606c
commit
a2bb1ae6e3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue