Generate hash files for source tarball and salt onedir's

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-01-20 05:42:28 +00:00 committed by Megan Wilhite
parent 74666bb08b
commit 02b03f5a2d
2 changed files with 13 additions and 3 deletions

View file

@ -88,12 +88,17 @@ runs:
cd artifacts
Compress-Archive -LiteralPath "${{ inputs.package-name }}" -DestinationPath "${{ inputs.package-name }}-${{ inputs.arch }}-${{ inputs.platform }}.zip"
- name: Create Hash Files
shell: bash
run: |
tools pkg generate-hashes artifacts/${{ inputs.package-name }}-${{ inputs.arch }}-${{ inputs.platform }}.*
- name: Upload Onedir Tarball as an Artifact
if: ${{ inputs.platform != 'windows' }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.package-name }}-${{ inputs.platform }}-${{ inputs.arch }}.tar.xz
path: artifacts/${{ inputs.package-name }}-${{ inputs.platform }}-${{ inputs.arch }}.tar.xz
path: artifacts/${{ inputs.package-name }}-${{ inputs.platform }}-${{ inputs.arch }}.tar.xz*
retention-days: 7
- name: Upload Onedir Zipfile as an Artifact
@ -101,5 +106,5 @@ runs:
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.package-name }}-${{ inputs.arch }}-${{ inputs.platform }}.zip
path: artifacts/${{ inputs.package-name }}-${{ inputs.arch }}-${{ inputs.platform }}.zip
path: artifacts/${{ inputs.package-name }}-${{ inputs.arch }}-${{ inputs.platform }}.zip*
retention-days: 7

View file

@ -23,9 +23,14 @@ runs:
run: |
nox -e build
- name: Create Hash Files
shell: bash
run: |
tools pkg generate-hashes dist/salt-${{ env.SALT_VERSION }}.tar.gz
- name: Upload Source Tarball as an Artifact
uses: actions/upload-artifact@v3
with:
name: salt-${{ env.SALT_VERSION }}.tar.gz
path: dist/salt-*.tar.gz
path: dist/salt-*.tar.gz*
retention-days: 7