diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 3c03955..83bbe37 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -10,16 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: 12.x - - run: npm install - - run: npm run build - - run: | - npx gh-pages -d build \ - -b gh-pages \ - --repo "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" \ - --user "Auto Doc Publisher " \ - --no-history + - uses: actions/checkout@v4 + - uses: ljharb/actions/node/install@main + name: 'nvm install lts/* && npm install' + with: + node-version: lts/* + - run: npm run build + - uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: build + clean: true