Skip to content

Commit

Permalink
Add PyPIworkflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daklauss committed Dec 10, 2024
1 parent 360c215 commit b03e343
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish CADET-Python-Sim to PyPI

on:
release:
types: [published]

jobs:
build-and-publish:
name: Build and publish CADET-Process to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit b03e343

Please sign in to comment.