-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 1007 Bytes
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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