File tree Expand file tree Collapse file tree
template/{% if project_visibility == 'public' %}.github{% endif %}/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454
5555 release :
5656 name : Create GitHub release
57- needs : publish
57+ needs : build
5858 runs-on : ubuntu-latest
5959 permissions :
6060 contents : write
Original file line number Diff line number Diff line change 3131 name : dist
3232 path : dist/
3333
34- publish :
35- name : Publish to PyPI
36- needs : build
37- runs-on : ubuntu-latest
38- environment :
39- name : pypi
40- url : https://pypi.org/project/{{ project_name }}/
41- permissions :
42- id-token : write
43- attestations : write
44- steps :
45- - name : 🔽 Download artifact
46- uses : actions/download-artifact@v8
47- with :
48- name : dist
49- path : dist/
50-
51- - name : ☢️ Publish to PyPI
52- uses : pypa/gh-action-pypi-publish@release/v1
53- with :
54- attestations : true
55-
5634 release :
5735 name : Create GitHub release
58- needs : publish
36+ needs : build
5937 runs-on : ubuntu-latest
6038 permissions :
6139 contents : write
7553 run : gh release create {% raw %}${{ github.ref_name }}{% endraw %} dist/* --generate-notes
7654 env :
7755 GH_TOKEN : {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
56+ {%- if enable_pypi %}
57+
58+ publish :
59+ name : Publish to PyPI
60+ needs : build
61+ runs-on : ubuntu-latest
62+ environment :
63+ name : pypi
64+ url : https://pypi.org/project/{{ project_name }}/
65+ permissions :
66+ id-token : write
67+ attestations : write
68+ steps :
69+ - name : 🔽 Download artifact
70+ uses : actions/download-artifact@v8
71+ with :
72+ name : dist
73+ path : dist/
74+
75+ - name : ☢️ Publish to PyPI
76+ uses : pypa/gh-action-pypi-publish@release/v1
77+ with :
78+ attestations : true
79+ {%- endif %}
7880{#- vim: set ft=yaml: # }
You can’t perform that action at this time.
0 commit comments