Browse Source

ci: docs push use GRAPESJS_BOT_TOKEN (#6261)

release-docs-v0.21.14
Daniel Starns 1 year ago
committed by GitHub
parent
commit
70b3c573c5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      .github/workflows/publish-docs.yml

11
.github/workflows/publish-docs.yml

@ -17,11 +17,11 @@ jobs:
- uses: ./.github/actions/setup-project - uses: ./.github/actions/setup-project
- name: Setup Git - name: Setup Git
run: | run: |
git config --global user.name 'github-actions[bot]' git config --global user.name 'GrapesJSBot'
git config --global user.email 'github-actions[bot]@users.noreply.github.com' git config --global user.email 'services@grapesjs.com'
- name: Build and Deploy Docs - name: Build and Deploy Docs
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GRAPESJS_BOT_TOKEN: ${{ secrets.GRAPESJS_BOT_TOKEN }}
working-directory: ./docs working-directory: ./docs
run: | run: |
# abort on errors # abort on errors
@ -47,8 +47,7 @@ jobs:
git add -A git add -A
git commit -m 'deploy docs' git commit -m 'deploy docs'
# Pass the GITHUB_TOKEN before push: https://stackoverflow.com/a/69979203 # Push using PAT
git config --unset-all http.https://github.com/.extraheader git push https://$GRAPESJS_BOT_TOKEN@github.com/GrapesJS/website.git main
git push https://x-access-token:${GITHUB_TOKEN}@github.com/GrapesJS/website.git main
cd - cd -

Loading…
Cancel
Save