build: working on Woodpecker release process
This commit is contained in:
parent
aae91bdf70
commit
b374f1948f
1 changed files with 2 additions and 10 deletions
|
@ -17,17 +17,9 @@ cd $(dirname $(dirname $0))
|
||||||
log "cleaning up prior versions which may not match versions"
|
log "cleaning up prior versions which may not match versions"
|
||||||
rm -f dmoonfire*
|
rm -f dmoonfire*
|
||||||
|
|
||||||
# We need to change the URL to allow us to push.
|
|
||||||
if [ "x$CI" != "x" ]
|
|
||||||
then
|
|
||||||
log "changing Git URL to allow for pushing"
|
|
||||||
git remote set-url origin https://dmoonfire:$GITEA_TOKEN@src.mfgames.com/fedran-sources/i-will-hurt-you-only-once.git
|
|
||||||
else
|
|
||||||
log "not changing Git URL because we are not in a CI"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Perform the release process.
|
# Perform the release process.
|
||||||
log "performing semantic release"
|
log "performing semantic release"
|
||||||
|
export GIT_CREDENTIALS="dmoonfire:$GITEA_TOKEN"
|
||||||
npx semantic-release
|
npx semantic-release
|
||||||
|
|
||||||
# Create a tarball of the output files and upload them to S3.
|
# Create a tarball of the output files and upload them to S3.
|
||||||
|
@ -36,7 +28,7 @@ then
|
||||||
log "packaging output into a tarball"
|
log "packaging output into a tarball"
|
||||||
tar -cjf i-will-hurt-you-only-once.tar.bz2 dmoonfire*
|
tar -cjf i-will-hurt-you-only-once.tar.bz2 dmoonfire*
|
||||||
|
|
||||||
log "uploading tarball to bucket
|
log "uploading tarball to bucket"
|
||||||
s3cmd --access_key=$S3_ACCESS_KEY_ID --access_token=$S3_SECRET_ACCESS_KEY --host=$S3_ENDPOINT --host-bucket=$S3_ENDPOINT -P put i-will-hurt-you-only-once.tar.bz2 s3://$AWS_BUCKET || exit 1
|
s3cmd --access_key=$S3_ACCESS_KEY_ID --access_token=$S3_SECRET_ACCESS_KEY --host=$S3_ENDPOINT --host-bucket=$S3_ENDPOINT -P put i-will-hurt-you-only-once.tar.bz2 s3://$AWS_BUCKET || exit 1
|
||||||
else
|
else
|
||||||
log "no files to upload"
|
log "no files to upload"
|
||||||
|
|
Loading…
Reference in a new issue