Skip to content

Commit

Permalink
Update CI/CD, add Nettacker PyPI publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Sep 1, 2024
1 parent 781f9a8 commit bdf281c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 52 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,26 @@ jobs:
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true

publish-to-pypi:
name: Publish PyPI package
if: |
github.repository == 'owasp/nettacker' &&
github.event_name == 'push' &&
startsWith(github.event.ref, 'refs/tags/v')
environment: release
needs:
- build-package
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Get package artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
52 changes: 0 additions & 52 deletions .github/workflows/pypi_publish.yml

This file was deleted.

0 comments on commit bdf281c

Please sign in to comment.