f
This commit is contained in:
parent
7e601ee9a9
commit
5f86e986cd
@ -37,7 +37,9 @@ release:
|
|||||||
- git config --global user.name "GitLab CI"
|
- git config --global user.name "GitLab CI"
|
||||||
- git config --global user.email "ci@gitlab.com"
|
- git config --global user.email "ci@gitlab.com"
|
||||||
# Use the PAT for authentication
|
# Use the PAT for authentication
|
||||||
- git remote set-url origin https://oauth2:$ACCESS_TOKEN@gitlab.com/wintermyst/kidsonbrooms
|
- git config --global credential.helper store
|
||||||
|
- echo "https://oauth2:${GITLAB_PAT}@gitlab.com" > ~/.git-credentials
|
||||||
|
- 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 fetch --unshallow # Ensure we fetch all history for the branch (not a shallow clone)
|
||||||
- git checkout master # Switch to the master branch
|
- git checkout master # Switch to the master branch
|
||||||
- git branch --set-upstream-to=origin/master master # Set the upstream to the master branch
|
- git branch --set-upstream-to=origin/master master # Set the upstream to the master branch
|
||||||
@ -53,7 +55,7 @@ release:
|
|||||||
# Create a release on GitLab
|
# Create a release on GitLab
|
||||||
- |
|
- |
|
||||||
export RELEASE_RESPONSE=$(curl --request POST \
|
export RELEASE_RESPONSE=$(curl --request POST \
|
||||||
--header "PRIVATE-TOKEN: $ACCESS_TOKEN" \
|
--header "PRIVATE-TOKEN: ${GITLAB_PAT}" \
|
||||||
--header "Content-Type: application/json" \
|
--header "Content-Type: application/json" \
|
||||||
--data '{
|
--data '{
|
||||||
"name": "Release v'$VERSION'",
|
"name": "Release v'$VERSION'",
|
||||||
|
Loading…
Reference in New Issue
Block a user