Skip to content

Commit

Permalink
Update .github/workflows/typedoc-generate-gitbook-docs.yml
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frolov <frolvlad@gmail.com>
  • Loading branch information
gtsonevv and frol authored Oct 16, 2024
1 parent a6296cf commit 0a0ef85
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/typedoc-generate-gitbook-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,12 @@ jobs:
run: pnpm docs:generate-markdown

- name: Deploy to GitBook
env:
GITBOOK_TOKEN: ${{ secrets.GITBOOK_TOKEN }}
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git clone --branch=git-book https://near:${{ secrets.GH_PAT }}@github.com/near/near-sdk-js.git book
rsync -av --delete markdown-docs/ book/markdown-docs/
git clone --branch=git-book https://github.com/near/near-sdk-js.git book
rsync -av --delete markdown-docs/ book/
cd book
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add markdown-docs/
git add .
git commit -m "Update documentation [skip ci]"
git push https://near:${{ secrets.GH_PAT }}@github.com/near/near-sdk-js.git git-book
git push https://frol:${{ secrets.MY_GITHUB_TOKEN }}@github.com/near/near-sdk-js.git git-book

0 comments on commit 0a0ef85

Please sign in to comment.