File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ jobs:
147147 with :
148148 fetch-depth : 0 # required to see tags and commits
149149 ref : ${{ github.sha }} # lock to triggered commit ('github.ref' is dynamic)
150-
151150 - uses : actions/setup-python@v5 # needed for building project
152151 with :
153152 python-version : " ${{ fromJSON(needs.py-versions.outputs.matrix)[0] }}"
154153
154+ # Get Next Version & Tag
155155 - uses : WIPACrepo/wipac-dev-next-version-action@v1.2
156156 id : next-version
157157 with :
@@ -161,26 +161,28 @@ jobs:
161161 assets/**
162162 dependencies-logs/**
163163 resources/foo/**
164-
165164 - if : steps.next-version.outputs.version != ''
166165 name : Tag New Version
167166 run : |
168167 set -euo pipefail; echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
169168 git tag v${{ steps.next-version.outputs.version }} # note: prepend 'v'
170169 git push origin --tags
171170
171+ # Build Python Package
172172 - if : steps.next-version.outputs.version != ''
173173 uses : WIPACrepo/wipac-dev-py-build-action@v1.0
174174 # -> uses the most recent git tag for versioning (aka the one made above)
175175 # -> creates 'dist/' files
176176
177+ # GitHub Release
177178 - if : steps.next-version.outputs.version != ''
178179 uses : softprops/action-gh-release@v2
179180 with :
180181 files : dist/*
181182 tag_name : v${{ steps.next-version.outputs.version }} # must match git tag above
182183 generate_release_notes : true
183184
185+ # PyPI Release
184186 - if : steps.next-version.outputs.version != ''
185187 uses : pypa/gh-action-pypi-publish@release/v1
186188 with :
You can’t perform that action at this time.
0 commit comments