Skip to content

Commit

Permalink
Update GH Action to Build Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy-van-Jerry committed Aug 16, 2024
1 parent 19a6a5c commit 5f7e048
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ jobs:
- name: Install Pip dependencies
run: pip install -r requirements.txt
- name: Build static page
run: python ./generate.py
run: ./build.sh
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: |
'./lists'
'./index.html'
'./style.css'
path: './build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,6 @@ cython_debug/

# Generated Index Page
index.html

# GH Pages
/build
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

python ./generate.py
mkdir -p build
cp -r ./lists ./build
cp index.html ./build
cp style.css ./build

0 comments on commit 5f7e048

Please sign in to comment.