Skip to content

Commit 2f5f065

Browse files
Merge pull request #42 from ThomasJButler/v3.5-CSS-Enhance-Final
Update GitHub Pages deployment
2 parents 6a3bbf0 + 235c8ee commit 2f5f065

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Deploy to GitHub Pages
22

3+
permissions:
4+
contents: write
5+
36
on:
47
push:
58
branches:
@@ -12,6 +15,9 @@ jobs:
1215
steps:
1316
- name: Checkout code
1417
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
persist-credentials: true
1521

1622
- name: Setup Node.js
1723
uses: actions/setup-node@v3
@@ -31,6 +37,6 @@ jobs:
3137
git config --global user.name "github-actions[bot]"
3238
3339
- name: Deploy to GitHub Pages
34-
run: npm run deploy
3540
env:
3641
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
run: npx gh-pages -d dist -t $GH_TOKEN

0 commit comments

Comments
 (0)