Scripts: don't overwrite 'latest' if -sfw tagged
This commit is contained in:
parent
1e4c1b0804
commit
e6fee39fdf
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ jobs:
|
|||
run: |
|
||||
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'
|
||||
if [[ ! $tag =~ -sfw$ ]]; then
|
||||
ssh hetzner 'rm -f public/apk/mapcomplete-latest.apk && cp "public/apk/$(ls -v public/apk/ | tail -n 1)" public/apk/mapcomplete-latest.apk'
|
||||
fi
|
||||
|
||||
- name: Upload APK to forgejo releases (MapComplete)
|
||||
uses: https://source.mapcomplete.org/actions/forgejo-release@v2.6.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue