forked from MapComplete/MapComplete
Scripts: actually upload apk
This commit is contained in:
parent
947d70550d
commit
c14624cac4
2 changed files with 9 additions and 5 deletions
|
@ -31,9 +31,7 @@ jobs:
|
|||
git submodule update
|
||||
|
||||
- name: Decode keystore
|
||||
run: |
|
||||
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > ~/.gradle/release-key.jks
|
||||
|
||||
run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > ~/.gradle/release-key.jks
|
||||
|
||||
- name: Grant execute permission to gradlew
|
||||
run: cd android && chmod +x ./gradlew
|
||||
|
@ -51,4 +49,7 @@ jobs:
|
|||
|
||||
- name: Upload APK to hetzner
|
||||
shell: bash
|
||||
run: ls android/app/build/outputs/apk/release/
|
||||
run: |
|
||||
TAG=$(git describe --tags)
|
||||
BRANCH=$(echo ${{ github.ref_name }} | sed 's/\//-/g')
|
||||
scp android/app/build/outputs/apk/release/app-release.apk hetzner:~/apk/mapcomplete-$TAG.apk
|
||||
|
|
|
@ -49,7 +49,10 @@ single.mapcomplete.org {
|
|||
Report-To "{\"group\":\"csp-endpoint\", \"max_age\":86400, \"endpoints\":[{\"url\":\"https://report.mapcomplete.org/csp\"}], \"include_subdomains\":true}"
|
||||
}
|
||||
}
|
||||
|
||||
app.mapcomplete.org/builds {
|
||||
file_server browse
|
||||
root * apk/
|
||||
}
|
||||
app.mapcomplete.org {
|
||||
root * app/
|
||||
file_server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue