ci: add steps to create releases on vA.B.C tag events
the steps create a tar.gz with all files found in dist/ dir. additionally, an ad-hoc build.txt file is created with build info. the bot then creates a release and uploads the tar.gz as an artifact. the idea is that all nostr web app instances are notified about the new release, download the tar.gz and update their local copy. this is not yet implemented.pull/1/head
parent
f9fcb1131e
commit
6b72fb8205
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# assuming the script is run from the repo root dir
|
||||||
|
cd dist
|
||||||
|
|
||||||
|
# create build metadata
|
||||||
|
truncate -s0 build.txt
|
||||||
|
echo "remote: $CI_REPO_REMOTE" >> build.txt
|
||||||
|
echo "commit: $CI_COMMIT_SHA" >> build.txt
|
||||||
|
echo "tag: $CI_COMMIT_TAG" >> build.txt
|
||||||
|
echo "build id: $CI_BUILD_NUMBER" >> build.txt
|
||||||
|
cat build.txt
|
||||||
|
|
||||||
|
# make the release archive in the repo root dir
|
||||||
|
tar -czvf ../nostrweb.tar.gz *
|
Loading…
Reference in New Issue