fix: curl not installed???
This commit is contained in:
commit
ad9e7ec7ab
@ -8,6 +8,7 @@ compile:
|
||||
image: ubuntu:latest
|
||||
before_script:
|
||||
# Install Node.js v21.7.3 manually
|
||||
- apt-get update && apt-get install -y curl
|
||||
- curl -fsSL https://deb.nodesource.com/setup_21.x | bash -
|
||||
- apt-get install -y nodejs
|
||||
- node -v # Verify the correct Node.js version
|
||||
@ -26,6 +27,7 @@ release:
|
||||
image: ubuntu:latest # Or any other basic image
|
||||
before_script:
|
||||
# Install Node.js v21.7.3 manually
|
||||
- apt-get update && apt-get install -y curl
|
||||
- curl -fsSL https://deb.nodesource.com/setup_21.x | bash -
|
||||
- apt-get install -y nodejs
|
||||
- node -v # Verify the correct Node.js version
|
||||
@ -41,13 +43,15 @@ release:
|
||||
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
||||
script:
|
||||
# Check if VERSION is provided
|
||||
- if [ -z "$VERSION" ]; then echo "Error: VERSION variable is required." && exit 1; fi
|
||||
- |
|
||||
if [ -z "$VERSION" ]; then echo "Error: VERSION variable is required." && exit 1; fi
|
||||
|
||||
# Run Gulp release task (includes zipping)
|
||||
- gulp release
|
||||
|
||||
# Create a release on GitLab
|
||||
- export RELEASE_RESPONSE=$(curl --request POST \
|
||||
- |
|
||||
export RELEASE_RESPONSE=$(curl --request POST \
|
||||
--header "PRIVATE-TOKEN: $GITLAB_TOKEN" \
|
||||
--header "Content-Type: application/json" \
|
||||
--data '{
|
||||
@ -69,7 +73,8 @@ release:
|
||||
- export RELEASE_URL=$(echo $RELEASE_RESPONSE | jq -r '.assets.links[0].url')
|
||||
|
||||
# Update the system.json file with the release URL
|
||||
- sed -i "s|\"download\":.*|\"download\": \"$RELEASE_URL\",|" system.json
|
||||
- |
|
||||
sed -i "s|\"download\":.*|\"download\": \"$RELEASE_URL\",|" system.json
|
||||
|
||||
# Commit the updated system.json and push it to master
|
||||
- git config --global user.name "GitLab CI"
|
||||
@ -79,7 +84,8 @@ release:
|
||||
- git push origin master
|
||||
|
||||
# Publish the release to the Foundry API
|
||||
- curl -X POST https://api.foundryvtt.com/_api/packages/release_version/ \
|
||||
- |
|
||||
curl -X POST https://api.foundryvtt.com/_api/packages/release_version/ \
|
||||
-H "Authorization: $FOUNDRY_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
|
Loading…
Reference in New Issue
Block a user