Skip to content

Commit

Permalink
ci: docs push use GRAPESJS_BOT_TOKEN (#6261)
Browse files Browse the repository at this point in the history
  • Loading branch information
danstarns authored Oct 24, 2024
1 parent 5b4071c commit 70b3c57
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
- uses: ./.github/actions/setup-project
- name: Setup Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global user.name 'GrapesJSBot'
git config --global user.email 'services@grapesjs.com'
- name: Build and Deploy Docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GRAPESJS_BOT_TOKEN: ${{ secrets.GRAPESJS_BOT_TOKEN }}
working-directory: ./docs
run: |
# abort on errors
Expand All @@ -47,8 +47,7 @@ jobs:
git add -A
git commit -m 'deploy docs'
# Pass the GITHUB_TOKEN before push: https://stackoverflow.com/a/69979203
git config --unset-all http.https://github.com/.extraheader
git push https://x-access-token:${GITHUB_TOKEN}@github.com/GrapesJS/website.git main
# Push using PAT
git push https://[email protected]/GrapesJS/website.git main
cd -

0 comments on commit 70b3c57

Please sign in to comment.