Daniel Starns
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
6 deletions
-
.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 - |
|
|
|