-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (27 loc) · 974 Bytes
/
jekyll_preview.yml
File metadata and controls
34 lines (27 loc) · 974 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
# 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@v4
- name: Build 🏗️
uses: jerryjvl/jekyll-build-action@v1
- run: sudo chown -R $USER:$USER .
- run: |
echo "{ \"hosting\": { \"public\": \".\", \"cleanUrls\": true, \"trailingSlash\": false }}" > _site/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: _site
projectId: cevi-tools-preview-deployment
env:
FIREBASE_CLI_PREVIEWS: hostingchannels