diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 8a940d7..92467c8 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -13,11 +13,13 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v2
+ - name: Set env
+ run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Publish package
- run: mvn --batch-mode --no-transfer-progress deploy
+ run: mvn --batch-mode --no-transfer-progress -Drevision=$RELEASE_VERSION deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index f2c9e43..f176fe5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,9 +6,10 @@
org.maibornwolff
validation
- 1.0-SNAPSHOT
+ ${revision}
+ 1.0.0
UTF-8
11
11