Skip to content

Commit 4a4474b

Browse files
authored
Create python-publish.yml
1 parent c0e1029 commit 4a4474b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/python-publish.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
tags: ['python-v*']
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-n-publish:
11+
name: Use PDM to Build and publish Python 🐍 distributions 📦 to PyPI
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
# IMPORTANT: this permission is mandatory for trusted publishing
16+
id-token: write
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@master
21+
with:
22+
submodules: true
23+
24+
- name: Setup PDM
25+
uses: pdm-project/setup-pdm@v3
26+
27+
- name: Build and Publish distribution 📦 to PyPI
28+
run: |
29+
cd platforms/python
30+
pdm publish

0 commit comments

Comments
 (0)