Merge pull request #67 from CarterPerez-dev/project/network-traffic-n… #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================= | |
| # AngelaMos | 2025 | |
| # publish-dns-lookup.yml | |
| # ============================================================================= | |
| name: Publish dns-lookup to PyPI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'PROJECTS/beginner/dns-lookup/**' | |
| - '!PROJECTS/beginner/dns-lookup/README.md' | |
| - '!PROJECTS/beginner/dns-lookup/justfile' | |
| permissions: | |
| contents: read | |
| jobs: | |
| pypi-publish: | |
| name: Upload dns-lookup to PyPI | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/dnslookup-cli | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install build | |
| - name: Build package | |
| working-directory: PROJECTS/beginner/dns-lookup | |
| run: python -m build | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: PROJECTS/beginner/dns-lookup/dist/ |