update content github remove connection and plagiarism checker (#345) #380
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: publish docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Setup env | |
run: pip install sphinx==4.2.0 sphinx-sitemap sphinx_code_tabs recommonmark git+https://github.com/codio/pydata-sphinx-theme.git@master | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Build | |
run: make html | |
- name: Commit to deploy repo | |
run: | | |
mv html docs | |
git config --global init.defaultBranch master | |
git config --global user.name 'Max' | |
git config --global user.email '[email protected]' | |
git init | |
git remote add deploy https://MaximKraev:[email protected]/codio/knowledge-deploy | |
touch .nojekyll | |
echo "docs.codio.com" > docs/CNAME | |
git add . | |
git commit -m "Automated deploy" | |
git push -f deploy master | |
env: | |
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }} | |
working-directory: build |