mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Generate hash files for source tarball and salt onedir's
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
74666bb08b
commit
02b03f5a2d
2 changed files with 13 additions and 3 deletions
9
.github/actions/build-onedir-pkg/action.yml
vendored
9
.github/actions/build-onedir-pkg/action.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue