mirror of
https://github.com/higherkindness/mu-haskell.git
synced 2024-09-11 14:36:01 +03:00
Add auto-deploy of microsite to GH Pages 🐙 (#67)
Co-authored-by: Juan Valencia <juanvalencia@calvellido.es>
This commit is contained in:
parent
486ae13e98
commit
1f40c16ab9
28
.github/workflows/deploy.yml
vendored
Normal file
28
.github/workflows/deploy.yml
vendored
Normal 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
|
2
.github/workflows/haskell.yml
vendored
2
.github/workflows/haskell.yml
vendored
@ -1,5 +1,5 @@
|
||||
name: Haskell CI
|
||||
on: [push]
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
Reference in New Issue
Block a user