Use tag name for versioning
This commit is contained in:
parent
3368a3b1ec
commit
02c57a51d5
8
.github/workflows/maven-publish.yml
vendored
8
.github/workflows/maven-publish.yml
vendored
@ -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
|
||||
|
@ -2,12 +2,12 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>it.tdlight</groupId>
|
||||
<artifactId>tdlib-java</artifactId>
|
||||
<version>1.7.6.${revision}</version>
|
||||
<version>${revision}</version>
|
||||
<name>TDLib Java Wrapper</name>
|
||||
<packaging>jar</packaging>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<revision>0-SNAPSHOT</revision>
|
||||
<revision>1.0.0-SNAPSHOT</revision>
|
||||
<api-version>3.3.56</api-version>
|
||||
</properties>
|
||||
<repositories>
|
||||
|
@ -2,12 +2,12 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>it.tdlight</groupId>
|
||||
<artifactId>tdlight-java</artifactId>
|
||||
<version>1.7.6.${revision}</version>
|
||||
<version>${revision}</version>
|
||||
<name>TDLight Java Wrapper</name>
|
||||
<packaging>jar</packaging>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<revision>0-SNAPSHOT</revision>
|
||||
<revision>1.0.0-SNAPSHOT</revision>
|
||||
<api-version>3.3.56</api-version>
|
||||
</properties>
|
||||
<repositories>
|
||||
|
Loading…
Reference in New Issue
Block a user