-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1019 Bytes
/
github-pages.yml
File metadata and controls
42 lines (40 loc) · 1019 Bytes
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
name: Build and deploy lab website to github pages
on:
push:
branches:
- master
- dev
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: False
- name: Install R
uses: r-lib/actions/setup-r@v2
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
- name: Install Dependencies
run: |
npm install
npm run install:R
gem install bundler
bundle install
- name: Build
run: |
npm run build
- name: Deploy to github pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref_name == 'master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
cname: devbrainlab.org