Skip to content

Commit d0b8143

Browse files
committed
Auto-publish to pypi
1 parent b26344f commit d0b8143

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pypi_publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish to PyPI.org
2+
on:
3+
workflow_dispatch:
4+
release:
5+
types: [published]
6+
jobs:
7+
pypi-publish:
8+
name: Upload release to PyPI
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/batch-mailchimp
13+
permissions:
14+
id-token: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
- run: python3 -m pip install --upgrade build && python3 -m build
21+
- name: Publish package distributions to PyPI
22+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)