Skip to content

Commit ce0dbbf

Browse files
Renaming and using a newer workflow for publishing according to the trusted publishing in PyPI (#241)
* Update publishing workflow * Add CHANGELOG entry * Build the bindings from source to create the distribution archive Co-authored-by: Frédéric Simonis <[email protected]> --------- Co-authored-by: Frédéric Simonis <[email protected]>
1 parent b86bc70 commit ce0dbbf

File tree

3 files changed

+45
-34
lines changed

3 files changed

+45
-34
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Upload Python Package
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build:
10+
name: Build package
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.x'
17+
- run: pip install --upgrade build
18+
- name: Build package
19+
run: pyproject-build --sdist
20+
- uses: actions/upload-artifact@v4
21+
with:
22+
name: dist
23+
path: dist
24+
overwrite: true
25+
if-no-files-found: error
26+
retention-days: 1
27+
28+
publish:
29+
name: Upload release to PyPI
30+
needs: build
31+
runs-on: ubuntu-latest
32+
permissions:
33+
id-token: write
34+
steps:
35+
- name: Download package
36+
uses: actions/download-artifact@v4
37+
with:
38+
name: dist
39+
path: dist
40+
- name: Publish package distributions to PyPI
41+
uses: pypa/gh-action-pypi-publish@release/v1

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## latest
6+
7+
* Renaming and using a newer workflow for publishing according to the trusted publishing in PyPI https://github.com/precice/python-bindings/pull/241
8+
59
## 3.2.1
610

711
* Modify docstrings to highlight flexibility of the API in terms of its ability to handle multidimensional input data structures https://github.com/precice/python-bindings/pull/239

0 commit comments

Comments
 (0)