-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (43 loc) · 1.1 KB
/
deploy.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
name: Deploy
on:
push:
branches:
- master
# For Testing Code Only
#on: pull_request
jobs:
deploy:
runs-on: ubuntu-latest
container: ruby:2.7.2
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
name: Build and Deploy Beer-Garden.io
steps:
- uses: actions/checkout@v2
- name: Cache Bundler
uses: actions/cache@v2
with:
path: .cache/bundler
key: ${{ runner.os }}-bundler-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-bundler
- name: Bundle Install
run: |
bundle config set path .cache/bundler
bundle install
- name: Build Site
run: rake gen[github]
env:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2