Skip to content

update content github connection and virtual machine (#344) #379

update content github connection and virtual machine (#344)

update content github connection and virtual machine (#344) #379

Workflow file for this run

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