Fix build script
This commit is contained in:
parent
b0824407b1
commit
5f0fb91b49
1 changed files with 6 additions and 3 deletions
|
@ -44,18 +44,21 @@ jobs:
|
|||
export keyPassword=${{ secrets.KEY_PASSWORD }}
|
||||
./gradlew build
|
||||
./gradlew assembleRelease
|
||||
rm -rf app/build/outputs/apk/release/baselineProfiles
|
||||
rm -rf app/build/outputs/apk/release/output-metadata.json
|
||||
TAG=$( echo ${{ env.GITHUB_REF_NAME }} )
|
||||
scp app/build/outputs/apk/release/app-release.apk hetzner:~/public/apk/mapcomplete-$TAG.apk
|
||||
ssh hetzner 'rm -f public/apk/mapcomplete-latest.apk && cp "public/apk/$(ls -v public/apk/ | tail -n 1)" public/apk/mapcomplete-latest.apk'
|
||||
# Build versions vor legacy
|
||||
# Build versions for legacy versions
|
||||
./scripts/compile_version.sh $TAG 9-PIE 28
|
||||
./scripts/compile_version.sh $TAG 10-QUINCE-TART 29
|
||||
./scripts/compile_version.sh $TAG 11-RED-VELVET-CAKE 30
|
||||
./scripts/compile_version.sh $TAG 12-SNOW-CONE 31
|
||||
./scripts/compile_version.sh $TAG 13-TIRAMISU 32
|
||||
|
||||
- name: clean intermediate files
|
||||
run: |
|
||||
rm -rf app/build/outputs/apk/release/baselineProfiles
|
||||
rm -rf app/build/outputs/apk/release/output-metadata.json
|
||||
|
||||
- name: Upload APK to forgejo releases (MapComplete)
|
||||
uses: https://source.mapcomplete.org/actions/forgejo-release@v2.6.0
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue