Skip to content

Commit 9e29e96

Browse files
authored
workflow for updates in repo (#504)
1 parent 4a855fe commit 9e29e96

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Nightly F-Droid CI
2+
3+
on:
4+
push:
5+
branches:
6+
- fdroid-repo
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Fdroid Install
14+
uses: subosito/flutter-action@v1
15+
- name: Run F-Droid Update
16+
env:
17+
FDROID_CONFIG_YML_B64: ${{ secrets.FDROID_CONFIG_YML }}
18+
FDROID_KEYSTORE_P12_B64: ${{ secrets.FDROID_KEYSTORE_P12 }}
19+
run: |
20+
# Decode the secrets into files
21+
echo $FDROID_CONFIG_YML_B64 | base64 --decode > config.yml
22+
echo $FDROID_KEYSTORE_P12_B64 | base64 --decode > keystore.p12
23+
24+
# Install fdroidserver
25+
sudo apt-get update
26+
sudo apt-get install -y fdroidserver
27+
28+
# Run the update command, referencing the files
29+
fdroid update -c
30+
31+
- name: Push F-Droid updates
32+
run: |
33+
git add .
34+
git commit --amend -m "update: a repo update ${{ github.run_number }}"
35+
git push origin fdroid-repo --force

0 commit comments

Comments
 (0)