Skip to content

Commit 5499db3

Browse files
Use gh-pages CLI in workflow instead of action
1 parent 10c0fbb commit 5499db3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ jobs:
3232
run: npm run build
3333

3434
- name: Deploy to GitHub Pages
35-
uses: peaceiris/actions-gh-pages@v3
36-
with:
37-
github_token: ${{ secrets.GITHUB_TOKEN }}
38-
publish_dir: ./dist
35+
run: |
36+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
37+
npm run deploy
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3940

0 commit comments

Comments
 (0)