Skip to content

Merge pull request #9 from SMTorg/dev #3

Merge pull request #9 from SMTorg/dev

Merge pull request #9 from SMTorg/dev #3

Workflow file for this run

name: Build and upload to PyPI
on:
workflow_dispatch:
push:
tags: ['v*']
jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
name: smt-design-space-ext-src
path: dist/*.tar.gz
upload_pypi:
needs: [build_sdist]
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
pattern: smt-design-space-ext-*
merge-multiple: true
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true