Skip to content

Commit

Permalink
Merge pull request #1811 from ANTsX/fix_release_artifacts
Browse files Browse the repository at this point in the history
CI: Fix artifact names
  • Loading branch information
cookpa authored Nov 26, 2024
2 parents f8971e4 + 4cc4330 commit b07ae03
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release-docker-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,19 @@ jobs:
with:
ref: ${{ github.ref }}

- name: Get ANTs version and set artifact name
- name: Get ANTs version
run: |
echo "ANTS_VERSION=${ANTS_TAG#v}" >> $GITHUB_ENV
echo "ARTIFACT=ants-${ANTS_VERSION}-${{ matrix.config.os_desc }}-${{ runner.arch }}-${{ matrix.config.cc }}.zip" >> $GITHUB_ENV
env:
ANTS_TAG: ${{ github.ref_name }}

- name: Define env
run: |
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}
echo "CC=${{ matrix.config.cc }}" >> $GITHUB_ENV
echo "CXX=${{ matrix.config.cxx }}" >> $GITHUB_ENV
# ARTIFACT here is just the file name, no path because we're referencing it from inside containers
echo "ARTIFACT=ants-${{ env.ANTS_VERSION }}-${{ matrix.config.os_desc }}-${{ runner.arch }}-${{ matrix.config.cc }}.zip" >> $GITHUB_ENV
- name: Set up build container
run: |
docker pull ${{ matrix.config.image }}
Expand Down Expand Up @@ -132,4 +138,4 @@ jobs:
- name: Clean up
run: |
docker stop build_container
docker rm build_container
docker rm build_container

0 comments on commit b07ae03

Please sign in to comment.