Skip to content

Fixed typo doc to docs #1

Fixed typo doc to docs

Fixed typo doc to docs #1

name: Publish docs to Wiki
on:
push:
paths:
- 'docs/**'
branches:
- main
env:
USER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USER_NAME: "Saud0227"
USER_EMAIL: "[email protected]"
OWNER: ${{ github.event.repository.owner.name }}
REPOSITORY_NAME: ${{ github.event.repository.name }}
jobs:
publish_docs_to_wiki:
name: Publish docs to Wiki
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Pull content from Wiki
run: |
mkdir tmp_wiki
cd tmp_wiki
git init
git config user.name "${USER_NAME}"
git config user.email "${USER_EMAIL}"
git pull https://[email protected]/$OWNER/$REPOSITORY_NAME.wiki.git
- name: Push content to Wiki
run: |
rsync -av --delete docs/ tmp_wiki/ --exclude .git
cd tmp_wiki
git add .
git commit -m "Update Wiki content"
git push -f --set-upstream https://[email protected]/$OWNER/$REPOSITORY_NAME.wiki.git master