-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (36 loc) · 1.13 KB
/
fdroid.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Generate F-Droid repo
on:
push:
branches: [ main ]
workflow_dispatch:
schedule:
- cron: "45 2 * * *"
jobs:
apps:
name: "Generate repo from apps listing"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create basic directory structure
run: mkdir -p fdroid/repo
- name: Restore correct mtime
run: |
sudo apt install git-restore-mtime
git restore-mtime
- name: Install F-Droid server software
run: |
sudo add-apt-repository ppa:fdroid/fdroidserver
sudo apt-get update
sudo apt-get install fdroidserver
- name: Set up repo secrets
run: |
echo "${{ secrets.KEYSTORE_P12 }}" | base64 -d - > fdroid/keystore.p12
echo "${{ secrets.CONFIG_YML }}" | base64 -d - > fdroid/config.yml
- uses: actions/setup-go@v2
name: Set up Go
with:
go-version: '^1.17.0'
- name: Run update script
run: bash update.sh 2>&1
env:
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}