-
Notifications
You must be signed in to change notification settings - Fork 26
42 lines (36 loc) · 1.21 KB
/
deploy-private-nextflu.yaml
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
name: Deploy private.nextflu.org
on:
workflow_dispatch:
defaults:
run:
# Everything is run from within the nextflu/auspice directory
# https://github.com/blab/nextflu/tree/e672eba6d2e0ad5e10b0775f94fc87ffc75d6005/auspice
working-directory: auspice
jobs:
deploy_to_netlify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: blab/nextflu
# TODO: remove ref once merged
ref: exclude-vendor
sparse-checkout: |
auspice
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.3.7'
bundler-cache: true
# `uses` does not respect the default run.working-directory
# Luckily, the setup-ruby action has a `working-directory` input
# https://github.com/ruby/setup-ruby#working-directory
working-directory: auspice
- name: Build site
run: bundle exec jekyll build
- name: Deploy to Netlify
uses: netlify/actions/cli@master
with:
args: deploy --build --prod --dir auspice
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_STAGING }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}