Skip to content

Commit

Permalink
fixed up deploy ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed May 29, 2024
1 parent d600466 commit ac3bcc7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,12 @@ jobs:
needs: [devcheck, test, deploy-fileformats, deploy-fileformats-extras]
runs-on: ubuntu-latest
steps:

- name: Set up Git user
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Download version file
uses: actions/download-artifact@v2
with:
Expand All @@ -372,6 +378,25 @@ jobs:
run: |
sed -i '/\/pydra\/tasks\/mrtrix3\/${{ env.SUBPKG_NAME }}/d' .gitignore
- name: Add auto-generated directory to git repo
if: github.event_name == 'release' || github.event_name == 'repository_dispatch'
run: |
git add pydra/tasks/mrtrix3/$SUBPKG_NAME
git commit -am"added auto-generated version to make new tag for package version"
git status
- name: Get latest version tag
id: latest_tag
run: |
git fetch --tags
echo "TAG=$(git tag -l | grep 'v.*' | tail -n 1 | awk -F post '{print $1}')" >> $GITHUB_OUTPUT
- name: Overwrite the tag of release event with latest commit (i.e. including the auto directory)
if: github.event_name == 'release'
run: |
git tag -d ${{ steps.latest_tag.outputs.TAG }};
git tag -a ${{ steps.latest_tag.outputs.TAG }} -m"Tag used to create a pydra-mrtrix3 $MRTRIX_VERSION release";
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit ac3bcc7

Please sign in to comment.