-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.22 KB
/
build-n-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
name: Build-n-deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Build and deploy
runs-on: ubuntu-latest # ubuntu-18.04
steps:
- name: Checkout Repo
uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: "12.x"
# - run: npm --prefix=public ci
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- run: gem install bundler:2.1.2
- uses: actions/cache@v1
with:
path: vendor/bundle
key: bundle-use-ruby-${{ matrix.os }}-v3-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
bundle-use-ruby-${{ matrix.os }}-v3-${{ matrix.ruby }}-
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- run: (cd public/anielaolsztynek.pl && bundle exec jekyll build)
# - run: npm install -g workbox-cli && workbox generateSW workbox-config.js
- name: Deploy to Firebase
uses: w9jds/[email protected]
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}