Skip to content

add .github/workflows/pypi-publish.yaml #1

add .github/workflows/pypi-publish.yaml

add .github/workflows/pypi-publish.yaml #1

Workflow file for this run

# https://pdm-project.org/en/latest/usage/publish/
on:
push:
tags:
- "**"
workflow_dispatch: ~
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/lunar-birthday-ical
permissions:
# # This permission is needed for private repositories.
# contents: read
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
- name: Publish package distributions to PyPI
run: pdm publish
env:
PDM_PUBLISH_USERNAME: ${{ secrets.PDM_PUBLISH_USERNAME }}
PDM_PUBLISH_PASSWORD: ${{ secrets.PDM_PUBLISH_PASSWORD }}