You've already forked ugly-queue
fix: Fixing CI. Separate flow for upload 👷🔥️
This commit is contained in:
@@ -5,7 +5,7 @@ echo "Made temporary directory"
|
||||
|
||||
# Package up the release (Needs to be .zip for upload to gitea)
|
||||
|
||||
zip -r "./build/ugly-queue.zip" \
|
||||
zip -r "./build/Package.zip" \
|
||||
. \
|
||||
-x '.semrel/*' \
|
||||
-x '.generated-go-semantic-release-changelog.md' \
|
||||
@@ -17,14 +17,14 @@ zip -r "./build/ugly-queue.zip" \
|
||||
-x './.github/*' \
|
||||
-x './scripts/*'
|
||||
|
||||
RELEASE_ID=$(curl --silent -X 'GET' "${GITEA_HOST}/api/v1/repos/cybercinch/ugly-queue/releases/latest" \
|
||||
-H "accept: application/json" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" | jq -r .id)
|
||||
|
||||
# Attach to release
|
||||
curl --silent -X 'POST' "${GITEA_HOST}/api/v1/repos/cybercinch/ugly-queue/releases/${RELEASE_ID}/assets?name=ugly-queue-${1}.tar.gz" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
--form attachment="@build/ugly-queue-${1}.tar.gz"
|
||||
#RELEASE_ID=$(curl --silent -X 'GET' "${GITEA_HOST}/api/v1/repos/cybercinch/ugly-queue/releases/latest" \
|
||||
#-H "accept: application/json" \
|
||||
#-H "Authorization: token ${GITEA_TOKEN}" | jq -r .id)
|
||||
#
|
||||
## Attach to release
|
||||
#curl --silent -X 'POST' "${GITEA_HOST}/api/v1/repos/cybercinch/ugly-queue/releases/${RELEASE_ID}/assets?name=ugly-queue-${1}.tar.gz" \
|
||||
#-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
#--form attachment="@build/ugly-queue-${1}.tar.gz"
|
||||
|
||||
# Upload the artifact to composer registry
|
||||
curl --user "cibot:${GITEA_TOKEN}" \
|
||||
|
||||
Reference in New Issue
Block a user