ci: fixes for documentation deployment #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation Website Deployment | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Documentation Deployment | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: deploy manpages to website | |
env: | |
GH_TOKEN: ${{ secrets.GITLAB_DEPLOY_KEY }} | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Jinming Wu, Patrick" | |
git clone --depth 1 https://patrick:[email protected]/wslu/documentation website | |
cp -f ./CODE_OF_CONDUCT.md ./website/coc.md | |
cp -f ./CONTRIBUTING.md ./website/contributing.md | |
git --git-dir=./website/.git --work-tree=./website add -A | |
git --git-dir=./website/.git --work-tree=./website commit -m "Document update" | |
git --git-dir=./website/.git --work-tree=./website push | |