Building 70 Projects ranging from beginner to advanced so anyone can β learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company π
Go aicertificationcloud-engineeringcybercybersecuritycybersecurity-analystcybersecurity-certificationcybersecurity-certificationscybersecurity-educationcybersecurity-jobscybersecurity-portfoliocybersecurity-projectscybersecurity-toolsgrchackinglearningpentestingproject-repositoryprojetcspython
added publish workflow
HERITAGE-XION2b7792cbbca1
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlnew file mode 100644index 00000000..3359f907--- /dev/null+++ b/.github/workflows/publish.yml@@ -0,0 +1,38 @@+name: Publish to PyPI++on:+ release:+ types: [published]++jobs:+ # The Safety Check+ test:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ - uses: astral-sh/setup-uv@v5+ - run: uv python install 3.10+ - run: uv sync --all-extras --dev+ - run: uv run pytest -x++ # The Publisher+ # This ONLY runs if 'test' passes successfully.+ publish:+ needs: test # <--- The Dependency You Requested+ runs-on: ubuntu-latest+ environment: pypi+ permissions:+ id-token: write # IMPORTANT: Required for Trusted Publishing++ steps:+ - uses: actions/checkout@v4++ - name: Install uv+ uses: astral-sh/setup-uv@v5++ - name: Build package+ run: uv build++ - name: Publish to PyPI+ # We use the official PyPA action for OIDC security+ uses: pypa/gh-action-pypi-publish@release/v1\ No newline at end of filediff --git a/pyproject.toml b/pyproject.tomlindex 90481daf..90f525dc 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,5 +1,5 @@[project]-name = "metadata-scrubber-tool"+name = "metadata-scrubber"version = "0.1.0"description = "A privacy-focused CLI tool that removes sensitive metadata from image files"readme = "README.md"