Skip to content

Commit

Permalink
deployyml
Browse files Browse the repository at this point in the history
  • Loading branch information
riverscuomo committed Jul 12, 2024
1 parent 2c28150 commit db2ed45
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,25 @@ 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: 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: |
Expand Down

0 comments on commit db2ed45

Please sign in to comment.