-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.08 KB
/
python-package-conda.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Deploy Streamlit App to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install jq
run: |
sudo apt-get update
sudo apt-get install -y jq
- name: Fetch GitHub IP addresses
run: |
curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/meta | jq -r '.pages[]' > github_ips.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Streamlit
run: |
streamlit run Home.py &
sleep 10
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
- name: Display GitHub IP addresses
run: |
cat github_ips.txt