fix: 單獨 import librosa.display #25
Workflow file for this run
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: Streamlit Cloud CI | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Delete cloud branch if exists | |
run: | | |
git push --delete origin cloud || echo "No cloud branch to delete" | |
- name: Create and checkout cloud branch | |
run: | | |
git checkout -b cloud | |
git push -f -u origin cloud | |
- name: Modify Streamlit config | |
run: | | |
sed -i 's/maxUploadSize = .*/maxUploadSize = 10/' .streamlit/config.toml | |
sed -i 's/maxMessageSize = .*/maxMessageSize = 800/' .streamlit/config.toml | |
- name: Commit changes and push to cloud branch | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github Actions" | |
git commit -am "Update Streamlit config" | |
git push -u origin cloud |