Initial commit #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update F-Droid repository | ||
on: | ||
push: | ||
branches: [main] | ||
worflow_dispatch: | ||
jobs: | ||
apps: | ||
name: Update F-Droid repository | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create directory structure | ||
run: mkdir -p fdroid/repo | ||
- name: Restore mtime | ||
run: | | ||
sudo apt install git-restore-mtime | ||
git restore-mtime | ||
- name: Install F-Droid server | ||
run: | | ||
sudo add-apt-repository ppa:fdroid/fdroidserver | ||
sudo apt-get update | ||
sudo apt-get install fdroidserver | ||
- name: Setup up keystore | ||
run: | | ||
echo "${{ secrets.KEYSTORE_P12 }}" | base64 -d - > fdroid/keystore.p12 | ||
echo "keystorepass: ${{ secrets.KEYSTORE_PASS }}" >> fdroid/config.yml | ||
echo "keypass: ${{ secrets.KEY_PASS }}" >> fdroid/config.yml | ||
- name: Run lint | ||
run: fdroid lint | ||
working-directory: ./fdroid | ||
- name: Run update | ||
run: fdroid update | ||
working-directory: ./fdroid | ||