Skip to content

Commit 6030dad

Browse files
vadi2isaacvetterjmandel
authored
Migrate publication to Github Actions (#566)
* Create publish-docs.yml * Trim minor Python version, not supported by Github * Setup dependencies * Don't cd into docs * Add cname * Don't run on pull requests, only on merges * Delete .travis.yml * Delete deploy_key.enc --------- Co-authored-by: Isaac Vetter <[email protected]> Co-authored-by: Josh Mandel <[email protected]>
1 parent 17b956f commit 6030dad

File tree

3 files changed

+31
-23
lines changed

3 files changed

+31
-23
lines changed

.github/workflows/publish-docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish docs
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Python 3.6
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.6
19+
20+
- name: Setup dependencies
21+
run: pip install -r requirements.txt
22+
23+
- name: Generate docs
24+
run: mkdocs build --verbose --clean --strict
25+
26+
- name: Deploy
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./site
31+
cname: cds-hooks.org

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

deploy_key.enc

-1.64 KB
Binary file not shown.

0 commit comments

Comments
 (0)