File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed
Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 11name : Build packages
22
3- on :
3+ on :
44 push :
55 branches :
66 - master
3939 if : contains(github.ref, 'refs/heads/integration/')
4040 run : |
4141 echo ${{ steps.extract_version.outputs.raw_version }}
42- rc_version=${{ steps.extract_version.outputs.raw_version }}rc0
42+ rc_version=${{ steps.extract_version.outputs.raw_version }}rc1
43+ sed -i -e "s/__version__ = \"${{ steps.extract_version.outputs.raw_version }}/__version__ = \"$rc_version/g" sarpy/__about__.py
4344 echo "version=$rc_version" >> $GITHUB_OUTPUT
4445 id : extract_release_candidate_version
4546 - name : Install pypa/build
9495 prerelease : false
9596 target_commitish : ${{github.ref}}
9697 files : dist/*
98+
99+ publish-to-pypi :
100+ name : Publish to PyPI
101+ needs : release
102+ runs-on : ubuntu-latest
103+ environment :
104+ name : development
105+ permissions :
106+ id-token : write
107+ steps :
108+ - name : Download all the dists
109+ uses : actions/download-artifact@v4
110+ with :
111+ name : ${{ needs.build.outputs.version }}
112+ path : dist
113+ merge-multiple : true
114+ - run : ls -R dist
115+ - name : Publish distribution to PyPI
116+ uses : pypa/gh-action-pypi-publish@release/v1
117+ with :
118+ repository-url : https://pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments