1
0
Fork 0
mirror of https://github.com/Luzifer/github-publish.git synced 2024-11-09 23:00:14 +00:00

Upload archives to Github

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-12-28 18:28:03 +01:00
parent 129170def2
commit 85ef73b298
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 15 additions and 3 deletions

View file

@ -1,2 +1,2 @@
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh 05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
e1d40e89ab12c49c156f92ccc5ed03d1d816e6d69e5c4d86d064ddebb388c3ac golang.sh 61e06043c65ade1043a102bb91a3faefab8a33e94c08551f0a9ad039cc6c7f9c golang.sh

View file

@ -38,10 +38,22 @@ if [ -z "${GITHUB_TOKEN}" ]; then
exit 1 exit 1
fi fi
# Generate binary SHASUMs
sha256sum ${REPO}_* > SHA256SUMS
for file in ${REPO}_*; do
if [[ ${file} == *linux* ]]; then
tar -czf "${file}.tar.gz" "${file}"
else
zip "${file}.zip" "${file}"
fi
rm "${file}"
done
set -x set -x
# Generate SHASUMs # Generate archive SHASUMs
sha256sum ${REPO}_* > SHA256SUMS sha256sum ${REPO}_* >> SHA256SUMS
# Create a drafted release # Create a drafted release
github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} --draft || true github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} --draft || true