-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1.07 KB
/
Copy pathpages.yml
File metadata and controls
48 lines (41 loc) · 1.07 KB
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
name: Build and Deploy
on:
push:
branches:
- '**' # matches all branches
- '!gh-pages' # excludes gh-pages
permissions:
contents: write
pages: write
jobs:
build-and-deploy:
name: Build and deploy (ruby-${{ matrix.ruby_version }})
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: ['3.3']
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
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: |
sudo npm install --global pug pug-cli
make install-deps
- name: Build
run: |
make build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/master'
with:
branch: gh-pages
folder: _site
git-config-name: GitHub Actions
git-config-email: noreply@github.com