Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Anki Pack Common CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kartenaale
Build
Anki Pack Common CI
Commits
2f38ecbe
Commit
2f38ecbe
authored
10 months ago
by
Philipp Stadler
Browse files
Options
Downloads
Patches
Plain Diff
refactor: put both changelog and release notes into build stage
parent
e3129f07
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+25
-25
25 additions, 25 deletions
.gitlab-ci.yml
with
25 additions
and
25 deletions
.gitlab-ci.yml
+
25
−
25
View file @
2f38ecbe
...
@@ -58,6 +58,31 @@ changelog:
...
@@ -58,6 +58,31 @@ changelog:
paths
:
paths
:
-
CHANGELOG.md
-
CHANGELOG.md
release-notes
:
stage
:
build
rules
:
-
if
:
$CI_COMMIT_TAG
needs
:
-
job
:
build
artifacts
:
true
-
job
:
changelog
artifacts
:
true
variables
:
# we just need the artifacts and don't need up-to-date source, so don't even fetch
GIT_STRATEGY
:
none
# we don't need anything in node_modules or python, so don't fetch the cache
cache
:
[]
script
:
-
echo "# $CI_PROJECT_TITLE $CI_COMMIT_TAG" > RELEASE_NOTES.md
-
echo "Die APKGs im Pack _${CI_PROJECT_TITLE}_ stehen in der neuen Version $CI_COMMIT_TAG zum Download bereit 🎉" >> RELEASE_NOTES.md
-
echo "" >> RELEASE_NOTES.md
-
echo "Direkt zur APKG-Liste und Download:" >> RELEASE_NOTES.md
-
echo "$ARTIFACTS_URL" >> RELEASE_NOTES.md
-
cat CHANGELOG.md >> RELEASE_NOTES.md
artifacts
:
paths
:
-
RELEASE_NOTES.md
release-package-json-version-as-git-tag
:
release-package-json-version-as-git-tag
:
stage
:
release
stage
:
release
rules
:
rules
:
...
@@ -83,31 +108,6 @@ release-package-json-version-as-git-tag:
...
@@ -83,31 +108,6 @@ release-package-json-version-as-git-tag:
-
'
echo
package-json-tag:
keeping
older
tag
for
$NPM_VERSION'
-
'
echo
package-json-tag:
keeping
older
tag
for
$NPM_VERSION'
-
fi
-
fi
release-notes
:
stage
:
release
rules
:
-
if
:
$CI_COMMIT_TAG
needs
:
-
job
:
build
artifacts
:
true
-
job
:
changelog
artifacts
:
true
variables
:
# we just need the artifacts and don't need up-to-date source, so don't even fetch
GIT_STRATEGY
:
none
# we don't need anything in node_modules or python, so don't fetch the cache
cache
:
[]
script
:
-
echo "# $CI_PROJECT_TITLE $CI_COMMIT_TAG" > RELEASE_NOTES.md
-
echo "Die APKGs im Pack _${CI_PROJECT_TITLE}_ stehen in der neuen Version $CI_COMMIT_TAG zum Download bereit 🎉" >> RELEASE_NOTES.md
-
echo "" >> RELEASE_NOTES.md
-
echo "Direkt zur APKG-Liste und Download:" >> RELEASE_NOTES.md
-
echo "$ARTIFACTS_URL" >> RELEASE_NOTES.md
-
cat CHANGELOG.md >> RELEASE_NOTES.md
artifacts
:
paths
:
-
RELEASE_NOTES.md
create-gitlab-release
:
create-gitlab-release
:
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
stage
:
release
stage
:
release
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment