-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1009 Bytes
/
build.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
name: Build and publish
on:
workflow_dispatch:
jobs:
build_pages:
name: Publish Dashboard as GitHub Pages Website
runs-on: ubuntu-latest
env:
FRD_USER: ${{secrets.FRD_USER}}
FRD_PW: ${{secrets.FRD_PW}}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
- name: Install dependencies
run: |
pip install --upgrade --upgrade-strategy eager -r requirements.txt
- name: Update Stats
run: |
./script.sh
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Downloaded/Updated Data
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: ./html