Skip to content

Deploy private.nextflu.org #5

Deploy private.nextflu.org

Deploy private.nextflu.org #5

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 }}