Skip to content

Commit

Permalink
deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
riverscuomo committed Jul 12, 2024
1 parent 1471f99 commit 6fdd2ef
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@ jobs:
echo "Updating version number for spotkin_flutter web app"
./update_version.sh
- name: Generate config files
env:
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
SPOTIFY_REDIRECT_URI: ${{ secrets.SPOTIFY_REDIRECT_URI }}
SPOTIFY_SCOPE: ${{ secrets.SPOTIFY_SCOPE }}
BACKEND_URL: ${{ secrets.BACKEND_URL }}
run: |
mkdir -p assets
echo '{
"SPOTIFY_CLIENT_ID": "$SPOTIFY_CLIENT_ID",
"SPOTIFY_CLIENT_SECRET": "$SPOTIFY_CLIENT_SECRET",
"SPOTIFY_REDIRECT_URI": "$SPOTIFY_REDIRECT_URI",
"SPOTIFY_SCOPE": "$SPOTIFY_SCOPE",
"BACKEND_URL": "$BACKEND_URL"
}' > assets/config_prod.json
cp assets/config_prod.json assets/config.json
- name: Build Spotkin web app
run: |
flutter config --enable-web
Expand Down

0 comments on commit 6fdd2ef

Please sign in to comment.