From 8829860d0f81565b294328fecad7e8b8013c5bd8 Mon Sep 17 00:00:00 2001 From: WinterMyst Date: Sun, 22 Sep 2024 18:21:03 +0200 Subject: [PATCH] chore: I am trying --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df8e4a7..a8e87ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,6 +36,8 @@ release: - gulp --version # Verify Gulp is installed - git config --global user.name "GitLab CI" - git config --global user.email "ci@gitlab.com" + # Use the PAT for authentication + - git remote set-url origin https://oauth2:${GITLAB_PAT}@gitlab.com/wintermyst/kidsonbrooms.git - git fetch --unshallow # Ensure we fetch all history for the branch (not a shallow clone) - git checkout master # Switch to the master branch - git branch --set-upstream-to=origin/master master # Set the upstream to the master branch @@ -51,7 +53,7 @@ release: # Create a release on GitLab - | export RELEASE_RESPONSE=$(curl --request POST \ - --header "PRIVATE-TOKEN: $GITLAB_TOKEN" \ + --header "PRIVATE-TOKEN: $ACCESS_TOKEN" \ --header "Content-Type: application/json" \ --data '{ "name": "Release v'$VERSION'",