mirror of
https://github.com/Luzifer/github-publish.git
synced 2024-12-21 02:11:22 +00:00
Upload archives to Github
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
129170def2
commit
85ef73b298
2 changed files with 15 additions and 3 deletions
|
@ -1,2 +1,2 @@
|
||||||
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
||||||
e1d40e89ab12c49c156f92ccc5ed03d1d816e6d69e5c4d86d064ddebb388c3ac golang.sh
|
61e06043c65ade1043a102bb91a3faefab8a33e94c08551f0a9ad039cc6c7f9c golang.sh
|
||||||
|
|
16
golang.sh
16
golang.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue