Add auto-deploy of microsite to GH Pages 🐙 (#67)

Co-authored-by: Juan Valencia <juanvalencia@calvellido.es>
This commit is contained in:
Flavio Corpa 2020-01-09 17:41:26 +01:00 committed by GitHub
parent 486ae13e98
commit 1f40c16ab9
2 changed files with 29 additions and 1 deletions

28
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: mstksg/setup-stack@v1
- name: Generate Haddock Docs
run: bash ./generate-haddock-docs.sh
- name: Get Bundle & Jekyll
run: |
sudo apt-get update
sudo apt-get install ruby-dev
sudo gem install bundler --force
sudo gem update --system
sudo bundle install --gemfile docs/Gemfile --path vendor/bundle
- name: Build microsite
run: BUNDLE_GEMFILE=./docs/Gemfile bundle exec jekyll build -b /mu-haskell -s docs -d gen-docs
- name: Deploy microsite
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./gen-docs

View File

@ -1,5 +1,5 @@
name: Haskell CI
on: [push]
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest