Skip to content

Commit c52c429

Browse files
committed
debugging deploy job in gha
1 parent ee7820b commit c52c429

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,17 @@ jobs:
335335
POST=$(python -c "from pydra.tasks.afni.auto._version import *; print(post_release)")
336336
echo "TAG=${{ steps.latest_tag.outputs.TAG }}post${POST}" >> $GITHUB_OUTPUT
337337
338-
- name: Tag post-release version
339-
if: github.event_name == 'repository_dispatch'
338+
- name: Add auto directory to git repo and tag it (overwriting previous tag if release event)
339+
if: github.event_name == 'release' || github.event_name == 'repository_dispatch'
340340
run: |
341-
git add pydra/tasks/afni/auto/_version.py
341+
git add pydra/tasks/afni/auto
342342
git commit -m"added auto-generated version to make new tag for package version"
343-
git tag ${{ steps.post_release_tag.outputs.TAG }}
343+
if [ ${{ github.event_name }} == "release"]; then
344+
git tag -d ${{ steps.latest_tag.outputs.TAG }};
345+
git tag ${{ steps.latest_tag.outputs.TAG }};
346+
else
347+
git tag ${{ steps.post_release_tag.outputs.TAG }}
348+
fi
344349
345350
- name: Build source and wheel distributions
346351
run: python -m build .

0 commit comments

Comments
 (0)