Skip to content

Commit

Permalink
Merge pull request #330 from fusion-energy/adding-publish-action
Browse files Browse the repository at this point in the history
Adding publish action
  • Loading branch information
shimwell authored Sep 26, 2024
2 parents d2b4332 + d4068f9 commit e16118e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PyPI Python Package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ authors = [
license = {file = "LICENSE.txt"}
requires-python = ">=3.8"
keywords = ["python", "geometry", "reactor", "model", "cad", "fusion", "parametric", "dagmc", "openmc"]
dependencies = [
"cadquery"
]

[project.urls]
"Homepage" = "https://github.com/fusion-energy/paramak"
Expand Down

0 comments on commit e16118e

Please sign in to comment.