Skip to content

Commit ce20b08

Browse files
authored
Create python-package.yml
1 parent beb6883 commit ce20b08

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
jobs:
9+
pypi-publish:
10+
name: upload release to PyPI
11+
runs-on: ubuntu-latest
12+
# Specifying a GitHub environment is optional, but strongly encouraged
13+
environment: pypi
14+
permissions:
15+
# IMPORTANT: this permission is mandatory for Trusted Publishing
16+
id-token: write
17+
steps:
18+
# retrieve your distributions here
19+
20+
- name: Publish package distributions to PyPI
21+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)