Skip to content

Workflow file for this run

name: publish package
on:
push:
tags-ignore:
- "*.*.*[a]*"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: "3.11"
cache: true
- name: Install and verify
run: |
pdm install
pdm build
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
release:
name: Release
runs-on: ubuntu-latest
needs: [build]
environment:
name: pypi
url: https://pypi.org/project/ebdptoolkit/
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1