update dependencies and version

This commit is contained in:
2021-03-12 21:55:47 +06:00
parent 6e73c1d8c1
commit b7bdb6847c
2 changed files with 9 additions and 6 deletions

View File

@@ -8,6 +8,10 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Update version
run: |
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
sed -i -e "s/^version=\([0-9\.]*\)/version=\1-branch_$branch-build${{ github.run_number }}/" gradle.properties
- name: prebuild
run: ./gradlew clean build
- name: Publish package
@@ -15,4 +19,3 @@ jobs:
env:
GITHUBPACKAGES_USER: ${{ github.actor }}
GITHUBPACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
additional_version: "-build${{ github.run_number }}"