File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed
Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change 1- name : Publish to PyPI and TestPyPI
1+ name : Publish to PyPI
22
33on :
44 push :
5- branches :
6- - main
75 tags :
86 - ' *'
97
8886 gh release upload
8987 "$GITHUB_REF_NAME" dist/**
9088 --repo "$GITHUB_REPOSITORY"
91-
92- publish-to-testpypi :
93- name : Publish to TestPyPI
94- if : github.ref == 'refs/heads/main' # only publish to TestPyPI on main pushes
95- needs :
96- - build
97- runs-on : ubuntu-latest
98- environment :
99- name : testpypi
100- url : https://test.pypi.org/p/compiledb
101- permissions :
102- id-token : write
103- steps :
104- - name : Download all the dists
105- uses : actions/download-artifact@v4
106- with :
107- name : python-package-distributions
108- path : dist/
109- - name : Publish artifacts to TestPyPI
110- uses : pypa/gh-action-pypi-publish@release/v1
111- with :
112- repository-url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments