mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-24 17:51:25 +08:00
Fix the release workflow by copying before rename (#5319)
* Only copy files if not snapshot * Move sequence to copy before rename
This commit is contained in:
parent
d4200dc689
commit
255371c8e4
20
.github/workflows/tarball.yml
vendored
20
.github/workflows/tarball.yml
vendored
@ -141,20 +141,20 @@ jobs:
|
||||
bin/release -d $GITHUB_WORKSPACE gzip zip
|
||||
shell: bash
|
||||
|
||||
- name: Rename release file base name
|
||||
id: ren-basename
|
||||
if: ${{ (inputs.use_environ == 'release') && (inputs.use_tag == 'snapshot') }}
|
||||
run: |
|
||||
mv hdf5-${{ steps.version.outputs.SOURCE_TAG }}.tar.gz hdf5-${{ inputs.use_tag }}.tar.gz
|
||||
mv hdf5-${{ steps.version.outputs.SOURCE_TAG }}.zip hdf5-${{ inputs.use_tag }}.zip
|
||||
shell: bash
|
||||
|
||||
- name: Copy the release file source to a non-versioned file name
|
||||
id: cp-to-non-versioned
|
||||
if: ${{ (inputs.use_environ == 'release') }}
|
||||
run: |
|
||||
cp hdf5-${{ inputs.use_tag }}.tar.gz hdf5.tar.gz
|
||||
cp hdf5-${{ inputs.use_tag }}.zip hdf5.zip
|
||||
cp hdf5-${{ steps.version.outputs.SOURCE_TAG }}.tar.gz hdf5.tar.gz
|
||||
cp hdf5-${{ steps.version.outputs.SOURCE_TAG }}.zip hdf5.zip
|
||||
shell: bash
|
||||
|
||||
- name: Rename release file base name
|
||||
id: ren-basename
|
||||
if: ${{ (inputs.use_environ == 'release') && (inputs.use_tag == 'snapshot') }}
|
||||
run: |
|
||||
mv hdf5-${{ steps.version.outputs.SOURCE_TAG }}.tar.gz ${{ inputs.use_tag }}.tar.gz
|
||||
mv hdf5-${{ steps.version.outputs.SOURCE_TAG }}.zip ${{ inputs.use_tag }}.zip
|
||||
shell: bash
|
||||
|
||||
- name: List files in the repository
|
||||
|
Loading…
x
Reference in New Issue
Block a user