Added new lyrics provider, removed non-functional ones #69
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: Build Android | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Create env.env file | |
shell: bash | |
env: | |
SPOTIPY_CLIENT_ID: ${{ secrets.SPOTIPY_CLIENT_ID }} | |
SPOTIPY_CLIENT_SECRET: ${{ secrets.SPOTIPY_CLIENT_SECRET }} | |
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }} | |
run: | | |
touch neodeemer/env.env | |
echo SPOTIPY_CLIENT_ID="$SPOTIPY_CLIENT_ID" >> neodeemer/env.env | |
echo SPOTIPY_CLIENT_SECRET="$SPOTIPY_CLIENT_SECRET" >> neodeemer/env.env | |
echo YOUTUBE_API_KEY="$YOUTUBE_API_KEY" >> neodeemer/env.env | |
- name: Build with Buildozer | |
uses: ArtemSBulgakov/[email protected] | |
id: buildozer | |
with: | |
command: > | |
mkdir -p /github/workspace/neodeemer/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/neodeemer/; | |
cd /github/workspace/neodeemer/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/neodeemer/; | |
for path in armeabi-v7a arm64-v8a; | |
do | |
mkdir $path; | |
cd $path; | |
pip3 install yt_dlp --no-dependencies --target ./; | |
cd yt_dlp/extractor/; | |
mkdir ../temp/; | |
mv __init__.py _extractors.py adobepass.py common.py commonmistakes.py commonprotocols.py extractors.py generic.py lazy_extractors.py openload.py youtube.py ../temp/; | |
rm -r *; | |
cd ../temp/; | |
echo "$(head -n 26 _extractors.py)" > _extractors.py; | |
echo from .commonmistakes import CommonMistakesIE, UnicodeBOMIE >> _extractors.py; | |
echo from .commonprotocols import MmsIE, RtmpIE, ViewSourceIE >> _extractors.py; | |
echo from .generic import GenericIE >> _extractors.py; | |
mv __init__.py _extractors.py adobepass.py common.py commonmistakes.py commonprotocols.py extractors.py generic.py lazy_extractors.py openload.py youtube.py ../extractor/; | |
rmdir ../temp/; | |
cd ../../../ | |
done; | |
cd /github/workspace/neodeemer/; | |
pip3 install sh==1.14.2; buildozer android debug | |
workdir: neodeemer | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.buildozer.outputs.filename }} |