forked from acf-sack/sack-site
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 904 Bytes
/
main.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
name: Preview-Link-Generator
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Install packages
run: npm install
- name: Install bundle
run: bundle install
- name: Build the app
run: jekyll build
- name: Install Surge
run: npm install -g surge
- name: Deploy to surge
env:
SURGE_LOGIN: [email protected]
SURGE_TOKEN: acb9d89132e778a11f8bf1fea973b9fc
DEPLOY_DOMAIN: https://pr-${{ github.event.number }}-sack-site-acf.surge.sh
run: surge ./_site/ $DEPLOY_DOMAIN --token $SURGE_TOKEN