Skip to content

Commit 050f424

Browse files
authored
Merge pull request #892 from dianna-ai/fix-release-action
fix release action
2 parents 02b628b + 0a63ba5 commit 050f424

6 files changed

Lines changed: 16 additions & 13 deletions

File tree

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.7.0
2+
current_version = 1.8.0
33

44
[comment]
55
comment = The contents of this file cannot be merged with that of setup.cfg until https://github.com/c4urself/bump2version/issues/185 is resolved

.github/workflows/release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,31 @@ jobs:
2424
upload_test_pypi:
2525
needs: [build]
2626
runs-on: ubuntu-latest
27+
environment: testpypi_release
28+
permissions:
29+
# IMPORTANT: this permission is mandatory for Trusted Publishing
30+
id-token: write
2731
if: github.event_name == 'workflow_dispatch'
2832
steps:
2933
- uses: actions/download-artifact@v8
3034
with:
3135
name: artifact
3236
path: dist
33-
- uses: pypa/gh-action-pypi-publish@v1
37+
- uses: pypa/gh-action-pypi-publish@release/v1
3438
with:
35-
user: __token__
36-
password: ${{ secrets.TEST_PYPI_TOKEN }}
37-
repository_url: https://test.pypi.org/legacy/
39+
repository-url: https://test.pypi.org/legacy/
3840

3941
upload_pypi:
4042
needs: [build]
4143
runs-on: ubuntu-latest
44+
environment: pypi_release
45+
permissions:
46+
# IMPORTANT: this permission is mandatory for Trusted Publishing
47+
id-token: write
4248
if: github.event_name == 'release' && github.event.action == 'published'
4349
steps:
4450
- uses: actions/download-artifact@v8
4551
with:
4652
name: artifact
4753
path: dist
48-
- uses: pypa/gh-action-pypi-publish@v1
49-
with:
50-
user: __token__
51-
password: ${{ secrets.PYPI_TOKEN }}
54+
- uses: pypa/gh-action-pypi-publish@release/v1

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ authors:
5353
name-particle: "van der"
5454

5555
doi: 10.5281/zenodo.5801485
56-
version: "1.7.0"
56+
version: "1.8.0"
5757
repository-code: "https://github.com/dianna-ai/dianna"
5858
keywords:
5959
- XAI

dianna/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
__author__ = 'DIANNA Team'
3434
__email__ = 'dianna-ai@esciencecenter.nl'
35-
__version__ = '1.7.0'
35+
__version__ = '1.8.0'
3636

3737

3838
def explain_timeseries(model_or_function: Union[Callable, str],

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# built documents.
2727
#
2828
# The short X.Y version.
29-
version = '1.7.0'
29+
version = '1.8.0'
3030
# The full version, including alpha/beta/rc tags.
3131
release = version
3232

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ name = dianna
2525
project_urls =
2626
Bug Tracker = https://github.com/dianna-ai/dianna/issues
2727
url = https://github.com/dianna-ai/dianna
28-
version = 1.7.0
28+
version = 1.8.0
2929
license = Apache License 2.0
3030

3131
[options]

0 commit comments

Comments
 (0)