-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.28 KB
/
deploy_api_docs.yml
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
#name: Build FORD docs & deploy to gh-pages
name: FORD docs deployed to main
on:
push:
branches:
- main
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: python -m pip install --upgrade pip ford
- name: Checkout main
uses: actions/checkout@v1
- name: Build docs
run: |
ford --version
ford ford.md
ls
tree
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#BRANCH: gh_pages
BRANCH: main
FOLDER: docs/fpm-ford
TARGET_FOLDER: docs/fpm-ford
# ford(1) deletes the output directory before running
# so be careful to specify a unique subdirectory in
# your ford(1) configuration files
# valid inputs are ['SSH', 'ACCESS_TOKEN', 'GITHUB_TOKEN', 'BRANCH',
# 'FOLDER', 'TARGET_FOLDER', 'BASE_BRANCH', 'COMMIT_MESSAGE', 'CLEAN',
# 'CLEAN_EXCLUDE', 'GIT_CONFIG_NAME', 'GIT_CONFIG_EMAIL', 'REPOSITORY_NAME',
# 'WORKSPACE', 'SINGLE_COMMIT', 'LFS', 'SILENT', 'PRESERVE']