From d6e6960e05309899e3c337511f7c9790475299eb Mon Sep 17 00:00:00 2001 From: Thomas Lambert <t.lambert@uliege.be> Date: Fri, 25 Nov 2022 22:15:37 +0100 Subject: [PATCH] ci: add auto release Signed-off-by: Thomas Lambert <t.lambert@uliege.be> --- .gitlab-ci.yml | 16 ++++++++++++++++ CHANGELOG.md | 22 ++++++++++++++++------ 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4b435d8..a8098fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ default: # Columns of the pipeline stages: - static analysis + - release # Static code analysis job via MISS_HIT style_check: @@ -24,3 +25,18 @@ lint_check: stage: static analysis script: - mh_lint . + +# https://docs.gitlab.com/ee/user/project/releases/release_cicd_examples.html +release_job: + stage: release + image: registry.gitlab.com/gitlab-org/release-cli:latest + rules: + - if: $CI_COMMIT_TAG # Run this job when a tag is created + only: + - master # Only if tag is on main + script: + - echo "running release_job" + release: + tag_name: '$CI_COMMIT_TAG' + name: 'Release $CI_COMMIT_TAG' + description: 'Automatic release for $CI_COMMIT_TAG.' diff --git a/CHANGELOG.md b/CHANGELOG.md index fd975b8..525fd08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,17 +9,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +### Changed + +### Deprecated + +### Removed + +### Fixed + +## [4.1.0] - 2022-11-25 + +### Added + - **Polar**: add polypolar method - **Airfoil** class +- **CI/CD**: automatic release ### Changed - **Polar**: rename _analyse_ method in _analyze_ to use US spelling everywhere. -### Deprecated - -### Removed - ### Fixed - **formatairfoilcoord**: fix issue with autosave @@ -118,8 +127,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release -[Unreleased]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/v4.0.0...master -[4.0.0]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/v3.0.0...v4.0.0 +[Unreleased]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/v4.1.0...master +[4.1.0]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/4.0.0...v4.1.0 +[4.0.0]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/3.0.0...4.0.0 [3.0.0]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/v2.0.1...v3.0.0 [2.0.1]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/v2.0.0...v2.0.1 [2.0.0]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/v1.2.0...v2.0.0 -- GitLab