-
Notifications
You must be signed in to change notification settings - Fork 192
Expand file tree
/
Copy pathbitrise.yml
More file actions
62 lines (53 loc) · 1.58 KB
/
Copy pathbitrise.yml
File metadata and controls
62 lines (53 loc) · 1.58 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
format_version: 1.2.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
description: |
Official guides: http://www.mkdocs.org
workflows:
setup:
steps:
- script@1.1.0:
deps:
brew:
- name: python
apt_get:
- name: python-pip
- name: python-dev
- name: build-essential
inputs:
- content: |
#!/bin/bash
set -ex
# pip install --upgrade pip
# pip install --upgrade virtualenv
# On Linux, with apt installed python / python-pip
# these commands have to be performed with `sudo`!
pip install mkdocs && mkdocs --version
pip install mkdocs-material
deploy-to-github-pages:
steps:
- script:
description: |
Note: mkdocs builds into `./site/`
Official GitHub Pages deploy guide: https://help.github.com/articles/creating-project-pages-manually/
*You can find infos about how to initialize the required `gh-pages` branch
in the official guide.*
inputs:
- content: |-
#!/bin/bash
set -ex
rm -rf ./site
REPO_URL=$(git remote get-url origin)
git clone --branch gh-pages "$REPO_URL" ./site
mkdocs build --clean
cd site/
git add .
git commit -m 'deploy'
git push origin gh-pages
up:
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -ex
mkdocs serve