forked from bow-swift/bow-arch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52bf8ef
commit c7c0220
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: nef verify documentation | ||
|
||
on: [pull_request] | ||
|
||
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: Compile documentation | ||
run: | | ||
brew install nef | ||
gem install cocoapods -v 1.9.1 | ||
nef compile --project Documentation.app |