Skip to content

Commit 8c2a42d

Browse files
committed
merge master into refactor
2 parents b2e3a79 + 037d2c0 commit 8c2a42d

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/build_apk.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ jobs:
3333
- name: checkout codes
3434
uses: actions/checkout@v4
3535
with:
36-
fetch-depth: '0' # 0 indicates all history, this is needed for git revision
36+
fetch-depth: '0' # 0 indicates all history, this is needed for git revision
3737

3838
- name: Set up JDK
3939
uses: actions/setup-java@v4
4040
with:
41-
java-version: '17'
4241
distribution: 'temurin'
42+
java-version: '17'
4343

4444
- name: Assemble Release APK
4545
run: ./gradlew assembleRelease --stacktrace
46-
46+
4747
- name: Upload APK to artifacts
4848
uses: actions/upload-artifact@v4
4949
with:
5050
name: TouchHelper
5151
path: ./app/build/outputs/apk/
52-
52+
5353
- name: Create ZIPs
5454
working-directory: ./app/build/outputs/apk/
5555
run: |
@@ -61,9 +61,13 @@ jobs:
6161
echo "tag_name=$(($(git rev-list HEAD --count) + 100))" >> $GITHUB_OUTPUT
6262
echo "release_name=$(($(git rev-list HEAD --count) + 100))" >> $GITHUB_OUTPUT
6363
64-
- name: Create Release
64+
- name: Create Release and Upload APK
6565
uses: softprops/action-gh-release@v2
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6668
with:
6769
tag_name: tag-${{ steps.get_git_revision.outputs.tag_name }}
6870
name: Release ${{ steps.get_git_revision.outputs.release_name }}
71+
draft: false
72+
prerelease: false
6973
files: ./app/build/outputs/apk/TouchHelper.zip

0 commit comments

Comments
 (0)