1
- name : Deploy GitHub Pages
1
+ name : Deploy to GitHub Pages
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
4
+ push :
5
+ branches :
6
+ - main # Adjust branch name if necessary
7
7
8
8
jobs :
9
- deploy :
10
- runs-on : ubuntu-latest
11
- steps :
12
- - name : Checkout repository
13
- uses : actions/checkout@v4 # Update to latest version that supports Node.js 20
14
-
15
- - name : Setup Node.js
16
- uses : actions/setup-node@v4 # Update to latest version that supports Node.js 20
17
- with :
18
- node-version : ' 14' # Node.js 14 is still supported as per your original configuration
19
-
20
- - name : Rename well-known directory
21
- run : |
22
- mv wellknown .well-known
23
-
24
- - name : Deploy to GitHub Pages
25
- uses : peaceiris/actions-gh-pages@v3
26
- with :
27
- github_token : ${{ secrets.GITHUB_TOKEN }}
28
- publish_dir : ./
9
+ deploy :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v4 # Latest version
15
+
16
+ - name : Setup Node.js
17
+ uses : actions/setup-node@v4 # Latest version
18
+ with :
19
+ node-version : ' 14'
20
+
21
+ - name : Install dependencies
22
+ run : npm install # Modify as per your build setup (if using npm)
23
+
24
+ - name : Build site
25
+ run : npm run build # Modify as per your build setup (if using npm)
26
+
27
+ - name : Ensure .well-known directory exists
28
+ run : mkdir -p .well-known # Ensure the .well-known directory exists
29
+
30
+ - name : Create .nojekyll file
31
+ run : echo '' > .well-known/.nojekyll # Create a .nojekyll file inside .well-known
32
+
33
+ - name : Deploy to GitHub Pages
34
+ uses : peaceiris/actions-gh-pages@v3
35
+ with :
36
+ github_token : ${{ secrets.GITHUB_TOKEN }}
37
+ publish_dir : ./ # Publish from the root directory
0 commit comments