diff --git a/.github/workflows/deploy_docs.yaml b/.github/workflows/deploy_docs.yaml index df7a8bd7..b51af7d9 100644 --- a/.github/workflows/deploy_docs.yaml +++ b/.github/workflows/deploy_docs.yaml @@ -22,12 +22,20 @@ jobs: fetch-depth: 0 path: docs-files + - name: Generate GitHub App token + id: app-token + uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 + with: + app-id: ${{ vars.AUTH_APP_ID }} + private-key: ${{ secrets.AUTH_APP_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} + - name: clone frontend uses: actions/checkout@main with: repository: 'emqx/docs-emqx-com-frontend' ref: next - token: ${{ secrets.CI_GIT_TOKEN }} + token: ${{ steps.app-token.outputs.token }} path: frontend - name: use node.js @@ -126,4 +134,4 @@ jobs: API_KEY: ${{ secrets.ALGOLIA_API_KEY_NEXT }} with: docs_type: ${{ env.DOCS_TYPE }} - docs_version: ${{ env.VERSION }} \ No newline at end of file + docs_version: ${{ env.VERSION }}