Skip to content

chore: 固定Streamlit Cloud的Python版本 #26

chore: 固定Streamlit Cloud的Python版本

chore: 固定Streamlit Cloud的Python版本 #26

Workflow file for this run

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