Skip to content

Commit 39954e9

Browse files
authored
Merge pull request #146 from firebase/version_workflow
Add SHA for SDK output zip
2 parents 929feba + ada6b7e commit 39954e9

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/package.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: 'If already a working in progress release branch'
1616
default: None
1717

18+
env:
19+
# Use SHA256 for hashing files.
20+
hashCommand: "sha256sum"
21+
1822
jobs:
1923
package_sdks:
2024
name: package-${{matrix.os}}
@@ -155,16 +159,30 @@ jobs:
155159
echo "::set-output name=branch_pushed::0"
156160
fi
157161
158-
- name: Listing output
162+
- name: Create Zip File
159163
run: |
160-
ls -Rl
161-
working-directory: output
164+
cp docs/readme.md output/.
165+
cp LICENSE output/.
166+
ls -Rl output
167+
zip -r firebase_unity_sdk.zip output
168+
169+
- name: compute SDK hash
170+
shell: bash
171+
run: |
172+
${{ env.hashCommand }} --tag firebase_unity_sdk.zip > firebase_unity_sdk_hash.txt
173+
echo "::warning ::$(cat firebase_unity_sdk_hash.txt)"
174+
175+
- name: upload hash
176+
uses: actions/[email protected]
177+
with:
178+
name: firebase_unity_sdk_hash.txt
179+
path: firebase_unity_sdk_hash.txt
162180

163181
- name: Upload Build unitypackage
164182
uses: actions/upload-artifact@v2
165183
with:
166-
name: firebase_unity_sdk
167-
path: output
184+
name: firebase_unity_sdk.zip
185+
path: firebase_unity_sdk.zip
168186

169187
- name: Package tgz
170188
run: |

0 commit comments

Comments
 (0)