-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 1.31 KB
/
jekyll_preview.yml
File metadata and controls
46 lines (38 loc) · 1.31 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
# Deploys a preview of the page to firebase and posts a link to the PR
name: Jekyll Preview Site
on:
pull_request:
branches: [ main ]
jobs:
jekyll_preview:
name: Build and deploy Jekyll site
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
# Use GitHub Actions' cache to shorten build times and decrease load on servers
# - name: Use GitHub Action cache 💾
# uses: actions/cache@v2
# with:
# path: |
# - vendor/bundle
# - imgs
# Build the jekyll page
- name: Build 🏗️
uses: helaili/jekyll-action@v2
with:
build_only: true
pre_build_commands: apk --update add imagemagick
- run: sudo chown -R $USER:$USER .
- run: |
echo "{ \"hosting\": { \"public\": \".\", \"cleanUrls\": true, \"trailingSlash\": false }}" > build/firebase.json
- uses: FirebaseExtended/action-hosting-deploy@v0
name: Deploy 🚀 to Firebase Pages
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.CEVI_TOOLS_FIREBASE_PREVIEW_TOKEN}}'
channelId: dev
entryPoint: build
projectId: cevi-tools-preview-deployment
env:
FIREBASE_CLI_PREVIEWS: hostingchannels