Skip to content

Commit 96500d9

Browse files
author
Shoukun Sun
committed
Update release workflow, enhance changelog, and bump version to 1.0.5
1 parent 36dbe07 commit 96500d9

File tree

4 files changed

+24
-70
lines changed

4 files changed

+24
-70
lines changed

.github/workflows/publish-plugin.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,23 @@ jobs:
2424
echo "PLUGIN_NAME=segmap-qgis-plugin" >> $GITHUB_ENV
2525
echo "SERVER_NAME=segmap-server" >> $GITHUB_ENV
2626
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.10'
31+
32+
- name: Install qgis-plugin-ci
33+
run: pip install qgis-plugin-ci
34+
35+
- name: Deploy plugin
36+
env:
37+
OSGEO_USERNAME: ${{ secrets.OSGEO_USERNAME }}
38+
OSGEO_PASSWORD: ${{ secrets.OSGEO_PASSWORD }}
39+
run: |
40+
qgis-plugin-ci release ${GITHUB_REF/refs\/tags\//} \
41+
--osgeo-username $OSGEO_USERNAME \
42+
--osgeo-password $OSGEO_PASSWORD \
43+
2744
- name: Create plugin release artifacts
2845
run: |
2946
# Copy necessary plugin files
@@ -61,23 +78,9 @@ jobs:
6178
echo "PLUGIN_VERSION=$PLUGIN_VERSION" >> $GITHUB_ENV
6279
echo "PLUGIN_NAME_FULL=$PLUGIN_NAME" >> $GITHUB_ENV
6380
64-
# Extract changelog for current version from CHANGELOG.md
81+
# Extract changelog for current version using qgis-plugin-ci
6582
TAG_VERSION=${GITHUB_REF#refs/tags/v}
66-
CHANGELOG_ENTRY=$(awk -v ver="$TAG_VERSION" '
67-
/^## \[[0-9]+\.[0-9]+\.[0-9]+\]/ {
68-
# Extract version number from header
69-
match($0, /\[([0-9]+\.[0-9]+\.[0-9]+)\]/, ver_match)
70-
if (ver_match[1] == ver) {
71-
in_current = 1
72-
next
73-
} else if (in_current) {
74-
exit
75-
}
76-
}
77-
in_current {
78-
print
79-
}
80-
' CHANGELOG.md)
83+
CHANGELOG_ENTRY=$(qgis-plugin-ci changelog $TAG_VERSION)
8184
8285
# Create release notes with changelog
8386
echo "# Release v$TAG_VERSION" > changelog_entry.md

CHANGELOG.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,12 @@ All notable changes to SegMap will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.0.4] - 2025-04-30
9-
### Changed
10-
- Updated QGIS version compatibility to support versions >= 3.0.0.
11-
12-
## [1.0.3] - 2025-04-30
8+
## 1.0.5 - 2025/04/30
139

14-
### Changed
10+
- Config changelog message.
1511
- Updated QGIS version compatibility to support versions >= 3.0.0.
16-
17-
## [1.0.2] - 2025-04-30
18-
19-
### Fixed
2012
- Fixed URL construction for correct path handling on Windows by using urljoin.
2113

22-
## [1.0.1] - 2025-04-30
23-
24-
### Changed
25-
- Updated QGIS version compatibility to support versions 3.0.0 - 3.40.99.
26-
27-
## [1.0.0] - 2025-04-26
14+
## 1.0.0 - 2025/04/26
2815

29-
### Added
3016
- Initial release of the SegMap QGIS plugin.

segmap/metadata.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ description=AI-powered interactive image segmentation for rapid map digitization
55
about=SegMap using deep learning to extract vector features from imagery with just a few clicks, reducing traditional digitization effort by 90%%. Ideal for rapid land cover mapping and environmental analysis.
66
tracker=https://github.com/TitorX/SegMap-QGIS/issues
77
repository=https://github.com/TitorX/SegMap-QGIS
8-
version=1.0.4
8+
version=1.0.5
99
author=Shoukun Sun, Zhe Wang
1010
1111
# End of mandatory metadata
1212

1313
# Recommended items:
14-
tags=python, deep learning, interactive image segmentation
14+
tags=deep learning, interactive image segmentation, digitization, land cover mapping, environmental analysis
1515
homepage=https://github.com/TitorX/SegMap-QGIS
1616
category=Raster
1717
icon=logo.svg

0 commit comments

Comments
 (0)