Skip to content

Commit c9a0639

Browse files
authored
Merge pull request #152 from pyiron/trusted_publisher
Use trusted publisher action
2 parents cbcef95 + c5255b0 commit c9a0639

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1+
# This workflow is used to upload and deploy a new release to PyPi
2+
# Based on https://github.com/pypa/gh-action-pypi-publish
3+
14
name: PyPi Release
25

36
on:
47
push:
58
pull_request:
9+
workflow_dispatch:
610

7-
# based on https://github.com/pypa/gh-action-pypi-publish
811
jobs:
912
build:
13+
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
1014
runs-on: ubuntu-latest
11-
15+
environment:
16+
name: pypi
17+
url: https://pypi.org/p/pyiron_experimental
18+
permissions:
19+
id-token: write
1220
steps:
1321
- uses: actions/checkout@v2
1422
- uses: actions/setup-python@v2
1523
with:
16-
python-version: "3.10"
24+
python-version: "3.11"
1725

1826
- name: Install dependencies
1927
run: >-
@@ -25,8 +33,4 @@ jobs:
2533
run: >-
2634
python setup.py sdist bdist_wheel
2735
- name: Publish distribution 📦 to PyPI
28-
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
29-
uses: pypa/gh-action-pypi-publish@master
30-
with:
31-
user: __token__
32-
password: ${{ secrets.pypi_password }}
36+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)