Skip to content

Commit d459aaf

Browse files
authored
Merge pull request #12 from shimwell/adding-pypi-publish-action
added pypi publish action
2 parents 7729a5b + 0e93ba2 commit d459aaf

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/python-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PyPI Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install build
22+
- name: Build package
23+
run: python -m build
24+
- name: Publish a Python distribution to PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)