Skip to content

Commit

Permalink
Use simple build script
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog committed Jun 6, 2024
1 parent cb2c5c0 commit 5c96812
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: ./build.sh
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'index.html'
path: build/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

repo_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

main() {
rm -rf build
mkdir -p build

cp index.html build/
}

cd "$repo_dir" && main "$@"

0 comments on commit 5c96812

Please sign in to comment.