Skip to content

Commit

Permalink
feat(GHAction): auto build docs on push
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmartiin committed Dec 5, 2023
1 parent b2665f4 commit d07c67a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,28 @@ jobs:
name: Trigger docs re-build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2.4.0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 19

- name: Build docs
run: |
npm install
npm run build-docs
- name: Commit and push
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: 'update: docs (runned by GHAction)'
author_email: 'pierre.lepers@gmail.com'
author_name: 'plepers'
branch: 'develop'

- uses: actions/github-script@v6
with:
github-token: ${{ secrets.ACTIONS_KEY }}
Expand Down

0 comments on commit d07c67a

Please sign in to comment.