Skip to content

Commit 4334d3b

Browse files
authored
Update deploy.yml
1 parent bef0f83 commit 4334d3b

File tree

1 file changed

+33
-24
lines changed

1 file changed

+33
-24
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
1-
name: Deploy GitHub Pages
1+
name: Deploy to GitHub Pages
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
push:
5+
branches:
6+
- main # Adjust branch name if necessary
77

88
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

Comments
 (0)