Skip to content

Commit 5e43bf7

Browse files
add deploy
1 parent aeaae62 commit 5e43bf7

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Generate WebSite
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
run_exporter:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Set up dependencies
16+
run: npm install -g @liascript/exporter
17+
18+
- name: Check out current repository
19+
uses: actions/checkout@v4
20+
21+
- name: Generate WebSite
22+
run: liaex -i project.yml --format project --output index
23+
24+
- name: Prepare Deployment Directory
25+
run: |
26+
mkdir -p gh-pages-deploy
27+
mv index.html gh-pages-deploy/
28+
mv logo.jpg gh-pages-deploy/
29+
30+
- name: Deploy to GitHub Pages
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_branch: gh-pages
35+
publish_dir: gh-pages-deploy

0 commit comments

Comments
 (0)