Skip to content

Commit 67e7074

Browse files
authored
chore: fix gh-pages deploy (#114)
1 parent 11408fc commit 67e7074

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/github-pages.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Use Node.js
15-
uses: actions/setup-node@v1
16-
with:
17-
node-version: 12.x
18-
- run: npm install
19-
- run: npm run build
20-
- run: |
21-
npx gh-pages -d build \
22-
-b gh-pages \
23-
--repo "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" \
24-
--user "Auto Doc Publisher <docs@automator.bot>" \
25-
--no-history
13+
- uses: actions/checkout@v4
14+
- uses: ljharb/actions/node/install@main
15+
name: 'nvm install lts/* && npm install'
16+
with:
17+
node-version: lts/*
18+
- run: npm run build
19+
- uses: JamesIves/github-pages-deploy-action@v4
20+
with:
21+
branch: gh-pages
22+
folder: build
23+
clean: true

0 commit comments

Comments
 (0)