From 65d229d338a745f708e8c40c3ade173ed2fd8163 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Tue, 2 Jul 2024 12:49:55 +0900 Subject: [PATCH] ci: add zipSHA256 support (#909) --- .github/workflows/build-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index f9abd4f0..2bc56ed7 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -64,12 +64,14 @@ jobs: - name: Set Environment Variables run: | echo "zipFile=${{ env.packageName }}-${{ steps.version.outputs.prop }}".zip >> $GITHUB_ENV + echo "zipFileSHA256=${{ env.packageName }}-${{ steps.version.outputs.prop }}".zip.sha256 >> $GITHUB_ENV echo "unityPackage=${{ env.packageName }}-${{ steps.version.outputs.prop }}.unitypackage" >> $GITHUB_ENV - name: Create Zip run: | zip ".github/${{env.zipFile}}" ./* -r -x .github .git '.git/*' '*~/*' '*.ps1*' mv ".github/${{env.zipFile}}" "${{env.zipFile}}" + sha256sum "${{env.zipFile}}" > "${{env.zipFileSHA256}}" - uses: actions/upload-artifact@v4 with: @@ -85,4 +87,5 @@ jobs: tag_name: ${{ steps.version.outputs.prop }} files: | ${{ env.zipFile }} + ${{ env.zipFileSHA256 }} package.json