-
Notifications
You must be signed in to change notification settings - Fork 14
34 lines (31 loc) · 995 Bytes
/
st_cloud.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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