File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change
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
+
1
4
name : PyPi Release
2
5
3
6
on :
4
7
push :
5
8
pull_request :
9
+ workflow_dispatch :
6
10
7
- # based on https://github.com/pypa/gh-action-pypi-publish
8
11
jobs :
9
12
build :
13
+ if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
10
14
runs-on : ubuntu-latest
11
-
15
+ environment :
16
+ name : pypi
17
+ url : https://pypi.org/p/pyiron_experimental
18
+ permissions :
19
+ id-token : write
12
20
steps :
13
21
- uses : actions/checkout@v2
14
22
- uses : actions/setup-python@v2
15
23
with :
16
- python-version : " 3.10 "
24
+ python-version : " 3.11 "
17
25
18
26
- name : Install dependencies
19
27
run : >-
25
33
run : >-
26
34
python setup.py sdist bdist_wheel
27
35
- 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
You can’t perform that action at this time.
0 commit comments