Fixed Android build issues #73
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/checkout@v4 | |
- 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: pip3 install sh==1.14.2; buildozer android debug | |
workdir: neodeemer | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ${{ steps.buildozer.outputs.filename }} |