Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
35d0144d
Commit
35d0144d
authored
May 16, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding some debug for test key secret
parent
f7fb17a0
Pipeline
#12223
passed with stages
in 3 minutes 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
deploy-curseforge.sh
deploy-curseforge.sh
+7
-4
deploy-modrinth.sh
deploy-modrinth.sh
+7
-3
No files found.
deploy-curseforge.sh
View file @
35d0144d
...
...
@@ -2,6 +2,9 @@
set
-e
TEST_KEY
=
${
TEST_KEY
}
echo
"TEST_KEY:
$TEST_KEY
"
CURSEFORGE_API_KEY
=
${
CURSEFORGE_API_KEY
}
CHANGELOG_FILE
=
"./CHANGELOG.md"
API_URL
=
"https://minecraft.curseforge.com/api"
...
...
@@ -95,10 +98,10 @@ for FILE in creaturechat*.jar; do
-F
"metadata=<metadata.json;type=application/json"
\
-F
"file=@
$FILE
;type=application/java-archive"
)
# Output the response and HTTP code
echo
"Response:"
cat
response.txt
echo
"
$HTTP_RESPONSE
"
# Output the response and HTTP code
echo
"Response:"
cat
response.txt
echo
"
$HTTP_RESPONSE
"
echo
"Uploaded
$FILE_BASENAME
as version
$VERSION_NUMBER
."
fi
...
...
deploy-modrinth.sh
View file @
35d0144d
...
...
@@ -2,6 +2,9 @@
set
-e
TEST_KEY
=
${
TEST_KEY
}
echo
"TEST_KEY:
$TEST_KEY
"
MODRINTH_API_KEY
=
${
MODRINTH_API_KEY
}
CHANGELOG_FILE
=
"./CHANGELOG.md"
API_URL
=
"https://api.modrinth.com/v2"
...
...
@@ -84,15 +87,16 @@ for FILE in creaturechat*.jar; do
# Upload the version with the file
echo
"Uploading
$FILE_BASENAME
as version
$VERSION_NUMBER
..."
RESPONSE
=
$(
curl
--fail
-s
-X
POST
"
$API_URL
/version"
\
HTTP_RESPONSE
=
$(
curl
--fail
-o
response.txt
-w
"
\n
HTTP Code: %{http_code}
\n
"
-X
POST
"
$API_URL
/version"
\
-H
"Authorization:
$MODRINTH_API_KEY
"
\
-H
"User-Agent:
$USER_AGENT
"
\
-F
"data=@metadata.json;type=application/json;filename=metadata.json"
\
-F
"file=@
$FILE
;type=application/java-archive;filename=
$FILE_BASENAME
"
)
# Output the response
# Output the response
and HTTP code
echo
"Response:"
echo
"
$RESPONSE
"
cat
response.txt
echo
"
$HTTP_RESPONSE
"
# Check if the response contains errors
if
[
$?
-ne
0
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment