From 0053e609a9bb44f6da5bda46a71a9f44dfab04e5 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 12 May 2023 14:32:42 +0800 Subject: [PATCH] ci: replace asciidoc variables during release --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 455126f0f..18b17a905 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -217,6 +217,8 @@ jobs: run: | mvn --no-transfer-progress versions:set -DremoveSnapshot -DgenerateBackupPoms=false echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" | tee -a $GITHUB_ENV + sed -i -e "s/^\:project-version\:\ .*/:project-version: ${{ env.RELEASE_VERSION }}/g" README.adoc + sed -i -e "s/^\:sqlite-version\:\ .*/:sqlite-version: $(sed "s/^.*=//" VERSION)/g" SECURITY.adoc # The sonatype maven plugin will decide the right destination depending on whether the project is SNAPSHOT or not - name: Publish to Apache Maven Central run: mvn --batch-mode --no-transfer-progress deploy -P release -DskipTests