-
Notifications
You must be signed in to change notification settings - Fork 26
62 lines (58 loc) · 1.67 KB
/
deploy-docs.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
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
name: Deploy Docs Microsite
on:
workflow_dispatch:
inputs:
tags:
description: 'Who triggered this test run?'
push:
branches:
- master
paths:
- 'TreasureData/**.h'
jobs:
deploy-docs-microsite:
name: Build and Deploy Docs microsite to treasure-data.github.io/td-ios-sdk
runs-on: macos-latest
continue-on-error: true
steps:
- name: Setup
continue-on-error: true
uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
- run: gem install jazzy
- name: git checkout
uses: actions/checkout@v2
with:
persistent-creadentials: false
fetch-depth: 0
repository: 'treasure-data/td-ios-sdk'
ref: 'master'
path: td-ios-sdk
- name: git checkout
uses: actions/checkout@v2
with:
persistent-creadentials: false
fetch-depth: 0
repository: 'treasure-data/td-ios-sdk'
ref: 'gh-pages'
path: gh-pages
- name: build docs
continue-on-error: true
run: |
cd $GITHUB_WORKSPACE/td-ios-sdk
sudo jazzy --config .jazzy.yaml -o $GITHUB_WORKSPACE/gh-pages
- name: Commit Docs
run: |
cd $GITHUB_WORKSPACE/gh-pages
git config user.email "[email protected]"
git config user.name "ci-bot"
git status
git add ./*
git commit -m "[ci-bot] Updating docs microsite to latest from master"
- name: deploy docs
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
directory: gh-pages