diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4ef73cc..5b85df0 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -7,15 +7,15 @@ on: jobs: deploy: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - run: npm install # 文档编译命令,如果是 react 模板需要修改为 npm run docs:build - run: npm run build - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - # 文档目录,如果是 react 模板需要修改为 docs-dist - publish_dir: ./dist \ No newline at end of file + - name: Publish github pages + run: | + git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/linpeilie/mapstruct-plus.git + npx gh-pages -d build -u "github-actions-bot " + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}