-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 924 Bytes
/
deploy-docs.yml
File metadata and controls
31 lines (27 loc) · 924 Bytes
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
name: Deploy docs
on:
push:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Switch Xcode version
run: sudo xcode-select -s /Applications/Xcode_11.4.1.app/Contents/Developer
- name: Generate microsite
run: |
brew install nef
brew install sourcekitten
gem install bundler -v 2.0.2
gem install cocoapods -v 1.9.1
bundle install --gemfile docs/Gemfile --path vendor/bundle
nef jekyll --project Documentation.app --output docs --main-page Documentation.app/Jekyll/Home.md
BUNDLE_GEMFILE=./docs/Gemfile bundle exec jekyll build -s docs -d gen-docs
- name: Deploy microsite
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.DEPLOY_TOKEN }}
publish_branch: gh-pages
publish_dir: ./gen-docs
disable_nojekyll: true