-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (40 loc) · 1.04 KB
/
web-publish.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
---
name: Build static website
on:
push:
branches:
- "main"
schedule:
- cron: "0 15 * * 5"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Create branch directories
run: mkdir -p main public
- uses: actions/checkout@v2
with:
path: main
- uses: actions/checkout@v2
with:
ref: public
path: public
- name: Install Python3
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: python3 -m pip install -r requirements.txt
working-directory: ./main
- name: Generate index.html
run: python3 ./csv2html.py
working-directory: ./main
- name: Copy files to right location
run: |
cp main/index.html public
cp -r "main/siteAssets" public
- name: Commit back updated files to public branch
uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: public
commit_message: Updating page