comment about gdb options #40
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
| name: Publish to pypi | |
| on: push | |
| # https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | |
| # https://packaging.python.org/en/latest/tutorials/packaging-projects/ | |
| jobs: | |
| build: | |
| name: Build package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Setup python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - name: Install build deps | |
| run: python3 -m pip install --upgrade build | |
| - name: Build a binary wheel and a source tarball | |
| run: python3 -m build | |
| - name: Store the packages | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: python-package-distribution | |
| path: dist/ | |
| publish-to-pypi: | |
| name: Publish package to pypi | |
| if: startsWith(github.ref, 'refs/tags/') # Only publish on tag pushes | |
| needs: | |
| - build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/niche-elf | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Download all the dists | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: python-package-distribution | |
| path: dist/ | |
| - name: Publish package to pypi | |
| uses: pypa/gh-action-pypi-publish@release/v1 |