Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marat2509 authored Jan 10, 2024
1 parent 25278eb commit c1580d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ jobs:
with:
fetch-depth: 0

- name: Generate version
id: parse_version
- name: Prepare variables
id: variables
run: |
COMMIT_NUM=$(git rev-list --count HEAD)
VERSION=$(echo "$COMMIT_NUM + 200 + 10000" | bc)
BUILD_TOOLS_VERSION=$(which zipalign)
echo "Generated Version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "BUILD_TOOLS_VERSION=$BUILD_TOOLS_VERSION" >> $GITHUB_OUTPUT
- name: Setup Java
uses: actions/setup-java@v3
Expand Down Expand Up @@ -90,7 +92,7 @@ jobs:
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ shell 'dirname $(which zipalign)' }}
BUILD_TOOLS_VERSION: ${{ steps.variables.outputs.BUILD_TOOLS_VERSION }}

# - name: Release apk
# uses: ncipollo/[email protected]
Expand Down

0 comments on commit c1580d3

Please sign in to comment.