diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml
index f4edf9a..9c07e4e 100644
--- a/.github/workflows/maven-publish.yml
+++ b/.github/workflows/maven-publish.yml
@@ -16,6 +16,12 @@ jobs:
- { os: ubuntu-20.04, arch: "linux/amd64", implementation: "tdlib" }
runs-on: ${{ matrix.os }}
steps:
+ - name: Branch name
+ id: branch_name
+ run: |
+ echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
+ echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
+ echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- uses: actions/checkout@v2
with:
submodules: "recursive"
@@ -23,7 +29,7 @@ jobs:
shell: bash
run: |
# ====== Variables
- export REVISION=${{ github.run_number }}
+ export REVISION=${{ steps.branch_name.outputs.SOURCE_TAG }}
export IMPLEMENTATION_NAME=${{ matrix.implementation }}
echo "REVISION=$REVISION" >> $GITHUB_ENV
diff --git a/tdlib/pom.xml b/tdlib/pom.xml
index c3e3cf8..725b119 100644
--- a/tdlib/pom.xml
+++ b/tdlib/pom.xml
@@ -2,12 +2,12 @@
4.0.0
it.tdlight
tdlib-java
- 1.7.6.${revision}
+ ${revision}
TDLib Java Wrapper
jar
UTF-8
- 0-SNAPSHOT
+ 1.0.0-SNAPSHOT
3.3.56
diff --git a/tdlight/pom.xml b/tdlight/pom.xml
index 1fc6b04..b105d87 100644
--- a/tdlight/pom.xml
+++ b/tdlight/pom.xml
@@ -2,12 +2,12 @@
4.0.0
it.tdlight
tdlight-java
- 1.7.6.${revision}
+ ${revision}
TDLight Java Wrapper
jar
UTF-8
- 0-SNAPSHOT
+ 1.0.0-SNAPSHOT
3.3.56