Skip to content
Snippets Groups Projects
Commit 39d817f2 authored by Frostberg's avatar Frostberg
Browse files

Update .gitlab-ci.yml file

parent a78aaa69
No related branches found
No related tags found
No related merge requests found
Pipeline #73246 failed
......@@ -16,8 +16,6 @@ before_script:
build_job:
stage: build
rules:
- if: '$CI_COMMIT_TAG =~ /^0\.\d+\.\d+\.\d+_DoLP_0\.\d+$/'
script:
- echo "Building version $VERSION"
- sh ./compile.sh
......@@ -33,11 +31,12 @@ build_job:
- cp -r -f ./beeesssparilhairstyleextendedimg/* ./releases/DoLP_BEEESSS+Paril+Hairstyle_Extended/img/
- apk add curl jq
- 'curl -H "PRIVATE-TOKEN: $CI_API_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/repository/changelog?version=$SANITIZED_VERSION" | jq -r .notes > release_notes.md'
artifacts:
paths:
- releases/
- release_notes.md
only:
- master
after_script:
- echo "Finished building."
......@@ -49,7 +48,9 @@ release_job:
- job: build_job
artifacts: true
rules:
- if: '$CI_COMMIT_TAG =~ /^0\.\d+\.\d+\.\d+_DoLP_0\.\d+$/'
- if: $CI_COMMIT_TAG
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
- echo "Creating releases..."
release:
......@@ -60,4 +61,4 @@ release_job:
assets:
links:
- name: '$SANITIZED_VERSION'
url: "https://$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA"
url: "https://$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment