Skip to content

Commit d9acd90

Browse files
committed
Fix release script to include version suffix in tags and filenames
- Extract PROJECT_VERSION_DEV suffix from CMakeLists.txt - Combine base version with suffix for complete version string - Update tag creation to use full version (e.g., v4.0.0-alpha1) - Ensure all file names include the suffix consistently
1 parent 91929d9 commit d9acd90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ jobs:
3232
sudo service postgresql start
3333
PGVER=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
3434
PGROUTING_VERSION=$(grep -Po '(?<=project\(PGROUTING VERSION )[^;]+' CMakeLists.txt)
35+
PGROUTING_VERSION_DEV=$(grep -Po '(?<=set\(PROJECT_VERSION_DEV ")[^"]+' CMakeLists.txt)
36+
FULL_VERSION="${PGROUTING_VERSION}${PGROUTING_VERSION_DEV}"
3537
echo "PGVER=${PGVER}" >> $GITHUB_ENV
3638
echo "PGPORT=5432" >> $GITHUB_ENV
3739
echo "PGIS=3" >> $GITHUB_ENV
38-
echo "PGROUTING_VERSION=${PGROUTING_VERSION}" >> $GITHUB_ENV
39-
echo "TAG_NAME=v${PGROUTING_VERSION}" >> $GITHUB_ENV
40+
echo "PGROUTING_VERSION=${FULL_VERSION}" >> $GITHUB_ENV
41+
echo "TAG_NAME=v${FULL_VERSION}" >> $GITHUB_ENV
4042
4143
- name: Create and Push Tag
4244
run: |

0 commit comments

Comments
 (0)