Skip to content

Commit

Permalink
setup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangel-dev committed May 15, 2020
1 parent 52bf8ef commit c7c0220
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-docs.yml
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
18 changes: 18 additions & 0 deletions .github/workflows/nef-compile.yml
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

0 comments on commit c7c0220

Please sign in to comment.