Skip to content

Commit c64c41e

Browse files
Simplify GitHub Pages deployment workflow
- Use more reliable peaceiris/actions-gh-pages action - Remove complex Pages API configuration - Add CNAME for proper domain setup - This should resolve deployment issues
1 parent 500c680 commit c64c41e

1 file changed

Lines changed: 22 additions & 37 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,34 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
86

97
permissions:
108
contents: read
119
pages: write
1210
id-token: write
1311

14-
concurrency:
15-
group: "pages"
16-
cancel-in-progress: false
17-
1812
jobs:
19-
build-and-deploy:
20-
environment:
21-
name: github-pages
22-
url: ${{ steps.deployment.outputs.page_url }}
13+
deploy:
2314
runs-on: ubuntu-latest
24-
2515
steps:
26-
- name: Checkout
27-
uses: actions/checkout@v4
28-
29-
- name: Setup Node.js
30-
uses: actions/setup-node@v4
31-
with:
32-
node-version: '18'
33-
cache: 'npm'
34-
35-
- name: Install dependencies
36-
run: npm ci
37-
38-
- name: Build
39-
run: npm run build
40-
41-
- name: Setup Pages
42-
uses: actions/configure-pages@v3
43-
44-
- name: Upload artifact
45-
uses: actions/upload-pages-artifact@v2
46-
with:
47-
path: ./dist
48-
49-
- name: Deploy to GitHub Pages
50-
id: deployment
51-
uses: actions/deploy-pages@v2
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '18'
23+
cache: 'npm'
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Build
29+
run: npm run build
30+
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./dist
36+
cname: syntaxsidekick.github.io

0 commit comments

Comments
 (0)