WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 39e46b9

Browse files
authored
Merge pull request #156 from pyiron/trusted_publisher
Use trusted publisher action
2 parents 2004e8f + cc0d8a7 commit 39e46b9

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
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/pylammpsmpi
18+
permissions:
19+
id-token: write
1220
steps:
1321
- uses: actions/checkout@v2
1422
- uses: actions/setup-python@v2
@@ -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)