-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (27 loc) · 830 Bytes
/
preview.yml
File metadata and controls
32 lines (27 loc) · 830 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
name: Deploy to Preview Channel
on:
pull_request:
# Optionally configure to run only for specific files. For example:
# paths:
# - "website/**"
jobs:
build_and_preview:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.78.2'
extended: true
- name: Hugo Build
working-directory: app
run: hugo --baseURL .
- name: Deploy to firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
projectId: cartodb-fb-documentation
env:
FIREBASE_CLI_PREVIEWS: hostingchannels