-
Notifications
You must be signed in to change notification settings - Fork 114
32 lines (30 loc) · 909 Bytes
/
publish.yml
File metadata and controls
32 lines (30 loc) · 909 Bytes
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
# This workflow will publish the package on PyPI
# For more information see: https://github.com/pypa/gh-action-pypi-publish
name: Publish
on:
release:
types: [released]
jobs:
publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/python-bugzilla
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Install pypa/build
run: pip install build
- name: Build a source tarball
run: python -m build --sdist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: false
verbose: false