ci: Add stage to generate GitLab releases of stable ns-3 versions

This commit is contained in:
Eduardo Almeida
2024-01-08 19:46:31 +00:00
parent 3ed75b7e9e
commit ffcbc322ad
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
# ns-3 CI/CD script GitLab Releases
#
# Contains jobs to generate automatic GitLab releases of stable ns-3 versions.
gitlab-release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG
script:
- echo "Creating a new release for tag $CI_COMMIT_TAG"
release:
name: $CI_COMMIT_TAG
description: "$CI_COMMIT_TAG release"
tag_name: $CI_COMMIT_TAG
assets:
links:
- name: Official Releases (nsnam.org)
url: https://www.nsnam.org/releases/
- name: RELEASE_NOTES.md
url: $CI_PROJECT_URL/-/blob/$CI_DEFAULT_BRANCH/RELEASE_NOTES.md
- name: CHANGES.md
url: $CI_PROJECT_URL/-/blob/$CI_DEFAULT_BRANCH/CHANGES.md

View File

@@ -23,6 +23,7 @@ stages:
- test
- code-linting
- documentation
- release
workflow:
rules:
@@ -93,3 +94,4 @@ include:
- "utils/tests/gitlab-ci-code-linting.yml"
- "utils/tests/gitlab-ci-doc.yml"
- "utils/tests/gitlab-ci-cppyy.yml"
- "utils/tests/gitlab-ci-release.yml"