You've already forked ugly-queue
fix: Create .zip archive instead of .tar.gz for Gitea 💚👷
All checks were successful
CI / release (push) Successful in 42s
All checks were successful
CI / release (push) Successful in 42s
This commit is contained in:
@@ -1,14 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mkdir -p ./build/tmp
|
mkdir -p ./build/
|
||||||
echo "Made temporary directory"
|
echo "Made temporary directory"
|
||||||
|
|
||||||
# Package up the release
|
# Package up the release (Needs to be .zip for upload to gitea)
|
||||||
tar -czf "./build/ugly-queue-${1}.tar.gz" \
|
|
||||||
--exclude='./vendor' \
|
zip -r "./build/ugly-queue.zip" \
|
||||||
--exclude='./tests' \
|
. \
|
||||||
--exclude='./build' \
|
-x './vendor/*' \
|
||||||
.
|
-x './tests/*' \
|
||||||
|
-x './build/*' \
|
||||||
|
-x './.git/*' \
|
||||||
|
-x './.idea/*' \
|
||||||
|
-x './.github/*' \
|
||||||
|
-x './scripts/*'
|
||||||
|
|
||||||
RELEASE_ID=$(curl --silent -X 'GET' "${GITEA_HOST}/api/v1/repos/cybercinch/ugly-queue/releases/latest" \
|
RELEASE_ID=$(curl --silent -X 'GET' "${GITEA_HOST}/api/v1/repos/cybercinch/ugly-queue/releases/latest" \
|
||||||
-H "accept: application/json" \
|
-H "accept: application/json" \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" | jq -r .id)
|
-H "Authorization: token ${GITEA_TOKEN}" | jq -r .id)
|
||||||
@@ -19,7 +25,6 @@ curl --silent -X 'POST' "${GITEA_HOST}/api/v1/repos/cybercinch/ugly-queue/releas
|
|||||||
--form attachment="@build/ugly-queue-${1}.tar.gz"
|
--form attachment="@build/ugly-queue-${1}.tar.gz"
|
||||||
|
|
||||||
# Upload the artifact to composer registry
|
# Upload the artifact to composer registry
|
||||||
|
|
||||||
curl --user "cibot:${GITEA_TOKEN}" \
|
curl --user "cibot:${GITEA_TOKEN}" \
|
||||||
--upload-file "build/ugly-queue-${1}.tar.gz" \
|
--upload-file "build/ugly-queue.zip" \
|
||||||
"${GITEA_HOST}/api/packages/cibot/composer?version=${1}"
|
"${GITEA_HOST}/api/packages/cybercinch/composer?version=${1}"
|
||||||
|
|||||||
Reference in New Issue
Block a user