Skip to content

v0.15.0

v0.15.0 #15

Workflow file for this run

name: Publish
on:
release:
types: [published]
env:
POETRY_VERSION: "1.8.3"
PACKAGE_NAME: "paramdb"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry==${{ env.POETRY_VERSION }}
- name: Build package
run: poetry build
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}-release
path: dist
publish:
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/${{ env.PACKAGE_NAME }}
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}-release
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1