Skip to content

Commit 4d0beff

Browse files
committed
fix CI workflow and broken privacy policy link
- Only publish releases on master branch, other branches build only - Fix privacy policy URL to point to existing docs/privacy.html
1 parent a716625 commit 4d0beff

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build_apk.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Build_TouchHelper_APK
66
# events but only for the master branch
77
on:
88
push:
9-
branches: [ master ]
9+
branches: [ master, refactor ]
1010
paths-ignore:
1111
- .github/workflows
1212
- 'docs/**'
@@ -57,18 +57,21 @@ jobs:
5757
path: ./app/build/outputs/bundle/release/
5858

5959
- name: Create ZIPs
60+
if: github.ref == 'refs/heads/master'
6061
working-directory: ./app/build/outputs/
6162
run: |
6263
zip -r ./TouchHelper-APK.zip ./apk/release
6364
zip -r ./TouchHelper-AAB.zip ./bundle/release
6465
6566
- name: Get git revision
67+
if: github.ref == 'refs/heads/master'
6668
id: get_git_revision
6769
run: |
6870
echo "tag_name=$(($(git rev-list HEAD --count) + 100))" >> $GITHUB_OUTPUT
6971
echo "release_name=$(($(git rev-list HEAD --count) + 100))" >> $GITHUB_OUTPUT
7072
7173
- name: Create Release and Upload APK
74+
if: github.ref == 'refs/heads/master'
7275
uses: softprops/action-gh-release@v2
7376
env:
7477
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</string>
2727

2828
<string name="about_weblink">https://touchhelper.zfdang.com/</string>
29-
<string name="about_privacy">隐私政策 (Privacy Policy):\nhttps://github.com/zfdang/Android-Touch-Helper/blob/master/PrivacyPolicy.md</string>
29+
<string name="about_privacy">隐私政策 (Privacy Policy):\nhttps://touchhelper.zfdang.com/privacy.html</string>
3030
<string name="about_copyright">Copyright © 2022 Zhengfa Dang</string>
3131

3232
<string name="app_version">版本: %s (%d)</string>

0 commit comments

Comments
 (0)