]> git.madduck.net Git - etc/vim.git/blob - .github/workflows/pypi_upload.yml

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Remove hard coded test cases (#3062)
[etc/vim.git] / .github / workflows / pypi_upload.yml
1 name: pypi_upload
2
3 on:
4   release:
5     types: [published]
6
7 permissions:
8   contents: read
9
10 jobs:
11   build:
12     name: PyPI Upload
13     runs-on: ubuntu-latest
14
15     steps:
16       - uses: actions/checkout@v3
17
18       - name: Set up Python
19         uses: actions/setup-python@v3
20
21       - name: Install latest pip, build, twine
22         run: |
23           python -m pip install --upgrade --disable-pip-version-check pip
24           python -m pip install --upgrade build twine
25
26       - name: Build wheel and source distributions
27         run: |
28           python -m build
29
30       - name: Upload to PyPI via Twine
31         env:
32           TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
33         run: |
34           twine upload --verbose -u '__token__' dist/*