]> 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:

Replace link to Requests documentation (#3125)
[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@v4
20         with:
21           python-version: "*"
22
23       - name: Install latest pip, build, twine
24         run: |
25           python -m pip install --upgrade --disable-pip-version-check pip
26           python -m pip install --upgrade build twine
27
28       - name: Build wheel and source distributions
29         run: |
30           python -m build
31
32       - name: Upload to PyPI via Twine
33         env:
34           TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
35         run: |
36           twine upload --verbose -u '__token__' dist/*