We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43188be commit 235c8eeCopy full SHA for 235c8ee
.github/workflows/deploy.yml
@@ -1,5 +1,8 @@
1
name: Deploy to GitHub Pages
2
3
+permissions:
4
+ contents: write
5
+
6
on:
7
push:
8
branches:
@@ -12,6 +15,9 @@ jobs:
12
15
steps:
13
16
- name: Checkout code
14
17
uses: actions/checkout@v3
18
+ with:
19
+ fetch-depth: 0
20
+ persist-credentials: true
21
22
- name: Setup Node.js
23
uses: actions/setup-node@v3
@@ -31,6 +37,6 @@ jobs:
31
37
git config --global user.name "github-actions[bot]"
32
38
33
39
- name: Deploy to GitHub Pages
34
- run: npm run deploy
35
40
env:
36
41
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42
+ run: npx gh-pages -d dist -t $GH_TOKEN
0 commit comments