Skip to content

Commit 29206f7

Browse files
authored
auto-build apk, and release on git tag (#476)
#391
1 parent da84802 commit 29206f7

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/apk.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
# for development
8-
- erosson/ci-apk-build
97

108
jobs:
119
deploy:
@@ -21,5 +19,17 @@ jobs:
2119
java-version: "8"
2220
- run: yarn --dev --frozen-lockfile
2321
- run: yarn turtle setup:android
24-
- run: yarn turtle build:android -t apk
25-
# TODO incomplete
22+
- run: yarn turtle build:android -t apk --output freecbt.apk | tee build.log
23+
env:
24+
EXPO_USERNAME: erosson
25+
EXPO_PASSWORD: ${{ secrets.EXPO_CLI_PASSWORD }}
26+
#EXPO_ANDROID_KEYSTORE_PASSWORD: ${{ secrets.EXPO_ANDROID_KEYSTORE_PASSWORD }}
27+
#EXPO_ANDROID_KEY_PASSWORD: ${{ secrets.EXPO_ANDROID_KEY_PASSWORD }}
28+
# turtle doesn't have a useful exit code, so fail here if it didn't generate our apk
29+
- run: test -f freecbt.apk
30+
# release only for new tags
31+
- uses: softprops/action-gh-release@v1
32+
if: startsWith(github.ref, 'refs/tags/')
33+
with:
34+
files: |
35+
freecbt.apk

0 commit comments

Comments
 (0)