Skip to content

Create python-publish.yml #1

Create python-publish.yml

Create python-publish.yml #1

name: Publish Python 🐍 distributions 📦 to PyPI
on:
push:
branches: [master]
tags: ['python-v*']
workflow_dispatch:
jobs:
build-n-publish:
name: Use PDM to Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout
uses: actions/checkout@master
with:
submodules: true
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
- name: Build and Publish distribution 📦 to PyPI
run: |
cd platforms/python
pdm publish