-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.66 KB
/
gh-pages.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Based on https://github.com/middleman/middleman/issues/2289
name: Deploy to GitHub Pages
on:
push:
branches:
- source
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# ----------------------------------------------------Ruby
- uses: ruby/setup-ruby@v1
with:
ruby-version: .tool-versions
bundler-cache: true
- name: Ruby Version
run: |
ruby -v
- name: Setup Ruby Dependencies
run: |
gem update bundler
bundle config set without 'development'
bundle install --jobs 4 --retry 3
- name: Install ZeroMQ
run: |
sudo apt-get install libzmq3-dev
#- name: Test Ruby Dependencies
# run: |
# bundle exec rake -T
# ----------------------------------------------------Node
#- name: Install Node
# uses: actions/setup-node@v1
# with:
# version: 10.16.3
#- name: Node Version
# run: |
# node --version
#- name: Setup Node Dependencies
# run: |
# npm install
# ----------------------------------------------------Webpack
#- name: Build Webpack File
# run: |
# bundle exec rake webpack:build:production
- name: Build Middleman Site
run: |
bundle exec middleman build
# ----------------------------------------------------Deploy
- name: Deploy to Github Pages
uses: peaceiris/[email protected]
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./build