fix: upgrade pip #53
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: Generate F-Droid repo | |
on: | |
repository_dispatch: | |
types: [fdroid-update] | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
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 Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' # Ensure Python version matches the requirements of fdroidserver | |
- name: Install requirements | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install virtualenv | |
python -m pip install androguard | |
python -m pip install --upgrade pip | |
- name: Set up virtual environment and install fdroidserver | |
run: | | |
python -m venv fdroidserver-env | |
source fdroidserver-env/bin/activate | |
pip install git+https://gitlab.com/fdroid/fdroidserver.git | |
- name: Verify fdroid installation | |
run: | | |
source fdroidserver-env/bin/activate | |
fdroid --version | |
- 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 }} |