mirror of
https://github.com/harry0703/MoneyPrinterTurbo.git
synced 2026-02-24 18:07:21 +08:00
wip
This commit is contained in:
parent
f480b21e58
commit
5bcb12203e
2
.github/workflows/deploy-function.yml
vendored
2
.github/workflows/deploy-function.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
||||
gcloud functions deploy moneyprinterturbo \
|
||||
--runtime python310 \
|
||||
--trigger-http \
|
||||
--entry-point function \
|
||||
--entry-point main \
|
||||
--source function \
|
||||
--region ${{ secrets.GCP_REGION }} \
|
||||
--set-env-vars API_URL="${{ secrets.API_URL }}",VIDEO_SUBJECT="${{ vars.VIDEO_SUBJECT }}",VIDEO_DESCRIPTION="${{ vars.VIDEO_DESCRIPTION }}",ACCOUNT_NAME="${{ vars.ACCOUNT_NAME }}",TIME_BEFORE_DOWNLOAD="${{ vars.TIME_BEFORE_DOWNLOAD }}"
|
||||
|
||||
@ -28,7 +28,7 @@ song_file_path = "./music.mp3"
|
||||
bgm_file_path = "../resource/songs/music.mp3"
|
||||
bgm_volume = 0.2
|
||||
|
||||
def function(request):
|
||||
def main(request):
|
||||
|
||||
upload_music_url = f"{api_base_url}/musics"
|
||||
files = {'file': open(song_file_path, 'rb')}
|
||||
Loading…
Reference in New Issue
Block a user