forked from public-mirrors/HuskSync
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
614 B
YAML
28 lines
614 B
YAML
2 years ago
|
# Update the GitHub Wiki documentation when a push is made to docs/
|
||
|
name: Update Docs
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ 'master' ]
|
||
|
paths:
|
||
|
- 'docs/**'
|
||
|
- 'workflows/**'
|
||
|
tags-ignore:
|
||
|
- '*'
|
||
|
|
||
|
permissions:
|
||
|
contents: write
|
||
|
|
||
|
jobs:
|
||
|
deploy-wiki:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: 'Checkout Code'
|
||
|
uses: actions/checkout@v3
|
||
|
- name: 'Push Changes to Wiki'
|
||
|
uses: Andrew-Chen-Wang/github-wiki-action@v3
|
||
|
env:
|
||
|
WIKI_DIR: 'docs/'
|
||
|
GH_TOKEN: ${{ github.token }}
|
||
|
GH_MAIL: 'actions@github.com'
|
||
|
GH_NAME: 'github-actions[bot]'
|