-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.2 KB
/
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
name: Build
on:
#schedule:
# * is a special character in YAML so you have to quote this string
#- cron: '30 0 * * *'
push:
branches:
- '**' # matches all branches
- '!gh-pages' # excludes gh-pages
jobs:
build-and-deploy:
name: Build and deploy (ruby-${{ matrix.ruby_version }})
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: ['3.2']
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Install dependencies
run: |
make install
sudo npm install --global pug pug-cli
- name: Build
run: |
make build
- name: Deploy 🚀
uses: JamesIves/[email protected]
if: github.ref == 'refs/heads/master'
with:
branch: gh-pages # The branch the action should deploy to.
folder: _site # The folder the action should deploy.
git-config-name: GitHub Actions
git-config-email: [email protected]