Skip to content

Commit

Permalink
fix: doc auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Mar 27, 2023
1 parent 6bdf9c1 commit e2965fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,19 @@ jobs:
run: pnpm dlx capacitor-plugin-standard-version --prerelease alpha
- name: Update Doc
run: pnpm docgen
- name: Update Doc
run: pnpm docgen:api
- name: Add doc to github
run: |
git add README.md
git add api.md
git commit --amend --no-edit
- name: Push to origin
run: |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git pull $remote_repo $CURRENT_BRANCH
git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags
- name: Update Doc
run: pnpm docgen:api
- name: Push generated doc to doc repo
uses: nkoppel/push-files-to-another-repository@v1.1.1
env:
Expand Down
2 changes: 2 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
description: All available method of the plugin
---

See the (Readme)[https://github.com/Cap-go/capacitor-updater] for more information.

<docgen-index>

</docgen-index>
Expand Down

0 comments on commit e2965fd

Please sign in to comment.