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