Skip to content

Commit

Permalink
Update mkdocs_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TianyuDu authored Jul 21, 2022
1 parent 196c3f3 commit 6e4002d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/mkdocs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Expand Down Expand Up @@ -55,9 +58,7 @@ jobs:
- name: run mkdocs build to generate html files.
run: mkdocs build

- name: update the repo.
run: |
git add docs
git commit -m 'build website by github action'
git push

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: build website by github action

0 comments on commit 6e4002d

Please sign in to comment.