Skip to content

Commit 98f9344

Browse files
committed
fix: Add GitHub Actions workflow for Pages deployment
- Remove legacy Jekyll build by using GitHub Actions - Create minimal _site directory with only index.html redirect - Remove unnecessary _config.yml and instruction files - This should fix the pages build and deployment error
1 parent 286d793 commit 98f9344

File tree

3 files changed

+47
-51
lines changed

3 files changed

+47
-51
lines changed

.github/workflows/pages.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Pages
25+
uses: actions/configure-pages@v5
26+
27+
- name: Create minimal site
28+
run: |
29+
mkdir -p _site
30+
cp index.html _site/
31+
echo "" > _site/.nojekyll
32+
33+
- name: Upload artifact
34+
uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: '_site'
37+
38+
deploy:
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
runs-on: ubuntu-latest
43+
needs: build
44+
steps:
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v4

GITHUB_PAGES_FIX.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

_config.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)