Skip to content

Commit 5b0cec4

Browse files
Joonatan Mäkinencsc-jm
andcommitted
Add autoupdate feature for version numbers in the codebase (merge commit)
Merge branch 'feature/autoupdate-version-numbers' into 'main' * Add autoupdate feature for version numbers in code See merge request https://gitlab.ci.csc.fi/sds-dev/sd-connect/swift-browser-ui/-/merge_requests/422 Approved-by: Timo Nurminen <tnurmine@csc.fi> Approved-by: Sampsa Penna <sapenna@csc.fi> Co-authored-by: Joonatan Mäkinen <joonatan.makinen@csc.fi> Merged by Joonatan Mäkinen <jmakine@csc.fi>
2 parents f21e132 + 84c840e commit 5b0cec4

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ wasm-test:
8686
- cd swift_browser_ui_frontend/wasm
8787
- ceedling
8888

89+
# This job creates the automated releases
8990
release-job:
9091
extends: .automated-release
9192
release:
@@ -105,6 +106,18 @@ release-job:
105106
url: https://${ARTIFACTORY_SERVER}/sds/swift-sharing-request:${RELEASE_VERSION}
106107
link_type: image
107108

109+
# This is a manual dry-run for developers to run in the merge request
110+
update-versions-dryrun:
111+
extends: .update-versions-dryrun
112+
variables:
113+
UPDATE_VERSION_FILES_LIST: "docs/_static/openapi.yaml;docs/source/conf.py;swift_browser_ui/__init__.py;swift_browser_ui_frontend/package.json"
114+
115+
# This job updates the versions
116+
update-versions:
117+
extends: .update-versions
118+
variables:
119+
UPDATE_VERSION_FILES_LIST: "docs/_static/openapi.yaml;docs/source/conf.py;swift_browser_ui/__init__.py;swift_browser_ui_frontend/package.json"
120+
108121
deploy:
109122
rules:
110123
# until this is https://gitlab.com/groups/gitlab-org/-/epics/4529 is merged

docs/_static/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: "3.0.3"
22
info:
33
title: "Swift Browser UI"
44
description: "API for querying Openstack Swift as well as working with Openstack Swift ACLs in order to enable sharing action."
5-
version: "2025.2.0"
5+
version: "2025.4.0"
66
license:
77
name: MIT
88
tags:

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
author = "CSC Developers"
2929

3030
# The full version, including alpha/beta/rc tags
31-
version = release = "2025.2.0"
31+
version = release = "2025.4.0"
3232

3333

3434
# -- General configuration ---------------------------------------------------

swift_browser_ui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"""
66

77
__name__ = "swift_browser_ui"
8-
__version__ = "2025.2.0"
8+
__version__ = "2025.4.0"
99
__author__ = "CSC Developers"
1010
__license__ = "MIT License"

swift_browser_ui_frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swift_browser_ui_frontend_npm",
3-
"version": "2025.2.0",
3+
"version": "2025.4.0",
44
"private": true,
55
"scripts": {
66
"serve": "./build_wasm.sh && vite serve --mode development",

0 commit comments

Comments
 (0)