Skip to content

Commit 36067e0

Browse files
committed
fix: publish landing page before first Android release
1 parent d7902c9 commit 36067e0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Publish F-Droid repository
22

33
on:
4+
push:
5+
branches: [main]
46
repository_dispatch:
57
types: [opentubex-release, opentubex-nightly]
68
workflow_dispatch:
@@ -129,8 +131,7 @@ jobs:
129131
fi
130132
131133
if ! find incoming -name '*.apk' -print -quit | grep --quiet .; then
132-
echo 'No published Android APK is available yet.' >&2
133-
exit 1
134+
echo '::notice title=Repository is waiting for its first APK::Publishing an empty signed index and the installation page'
134135
fi
135136
136137
- name: Restore repository signing key
@@ -155,7 +156,7 @@ jobs:
155156
run: |
156157
set -euo pipefail
157158
mkdir -p repo site
158-
cp incoming/*.apk repo/
159+
find incoming -maxdepth 1 -type f -name '*.apk' -exec cp '{}' repo/ \;
159160
fdroid update --pretty
160161
cp --recursive static/. site/
161162
mv repo site/repo

0 commit comments

Comments
 (0)