-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.18 KB
/
pypipublish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Publish releases to PyPI
on:
push:
branches:
- master
tags:
- v[0-9]+**
jobs:
package_build:
name: Build and publish to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/vswobbly
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build setuptools twine
continue-on-error: false
- name: Build wheel and source distribution
run: |
python -m build --wheel --sdist --outdir dist/
continue-on-error: false
- name: Check the output
run: |
python -m twine check --strict dist/*
continue-on-error: false
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1