From e53291359bb74e4e5319cfbaa973062bcb5bc941 Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Thu, 16 May 2024 10:14:36 -0500 Subject: [PATCH] updated PR with review input --- .github/workflows/release-files.yml | 17 +++++++++++++---- .github/workflows/tarball.yml | 10 ++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-files.yml b/.github/workflows/release-files.yml index 58a054595ff..32072500169 100644 --- a/.github/workflows/release-files.yml +++ b/.github/workflows/release-files.yml @@ -148,13 +148,24 @@ jobs: name: abi-reports path: ${{ github.workspace }} + - name: Get published non-versioned source + uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 + if: ${{ (inputs.use_environ == 'release') }} + with: + id: cp-to-non-versioned + path: ${{ github.workspace }} + + - name: Create sha256 sums for non-versioned files + if: ${{ (inputs.use_environ == 'release') }} + run: | + sha256sum hdf5.tar.gz >> hdf5.sha256sums.txt + sha256sum hdf5.zip >> hdf5.sha256sums.txt + - name: Create sha256 sums for files run: | sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen.zip > ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}.zip >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt - sha256sum hdf5.tar.gz >> hdf5.sha256sums.txt - sha256sum hdf5.zip >> hdf5.sha256sums.txt sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-osx12.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2204_gcc.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2204_gcc.deb.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt @@ -192,8 +203,6 @@ jobs: ${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen.zip ${{ steps.get-file-base.outputs.FILE_BASE }}.tar.gz ${{ steps.get-file-base.outputs.FILE_BASE }}.zip - hdf5.tar.gz - hdf5.zip ${{ steps.get-file-base.outputs.FILE_BASE }}-osx12.tar.gz ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2204_gcc.tar.gz ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2204_gcc.deb.tar.gz diff --git a/.github/workflows/tarball.yml b/.github/workflows/tarball.yml index fd72891428d..7bfaf9fd228 100644 --- a/.github/workflows/tarball.yml +++ b/.github/workflows/tarball.yml @@ -146,6 +146,14 @@ jobs: cp ${{ inputs.use_tag }}.zip hdf5.zip shell: bash + - name: Copy the release file source to the non-versioned file name + id: cp-to-non-versioned + if: ${{ (inputs.use_environ == 'release') }} + run: | + cp ${{ inputs.use_tag }}.tar.gz hdf5.tar.gz + cp ${{ inputs.use_tag }}.zip hdf5.zip + shell: bash + - name: List files in the repository run: | ls -l ${{ github.workspace }} @@ -168,6 +176,7 @@ jobs: - name: Save tgz-tarball_nover uses: actions/upload-artifact@v4 + if: ${{ (inputs.use_environ == 'release') }} with: name: tgz-tarball_nover path: hdf5.tar.gz @@ -175,6 +184,7 @@ jobs: - name: Save zip-tarball_nover uses: actions/upload-artifact@v4 + if: ${{ (inputs.use_environ == 'release') }} with: name: zip-tarball_nover path: hdf5.zip