4 Commits

Author SHA1 Message Date
032be45f9f fix: Create .zip archive instead of .tar.gz for Gitea 💚👷
All checks were successful
CI / release (push) Successful in 42s
2024-10-24 22:25:21 +13:00
afbddabea2 chore: Updated repo path 🔨 2024-10-24 22:24:23 +13:00
2ec085419f fix: Updated build script 🔨💚
All checks were successful
CI / release (push) Successful in 22s
2024-10-24 16:58:31 +13:00
7657af0a55 fix: Updated build script 🔨💚
All checks were successful
CI / release (push) Successful in 19s
2024-10-24 16:55:02 +13:00
2 changed files with 17 additions and 11 deletions

View File

@@ -9,7 +9,7 @@
"file queue", "file queue",
"ugly queue" "ugly queue"
], ],
"homepage": "https://github.com/dcarbone/ugly-queue", "homepage": "https://hub.cybercinch.nz/cybercinch/ugly-queue",
"license": "GPLv3", "license": "GPLv3",
"authors" : [ "authors" : [

View File

@@ -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,6 +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 -H "Authorization: token ${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/cybercinch/composer?version=${1}" "${GITEA_HOST}/api/packages/cybercinch/composer?version=${1}"