Deploy private.nextflu.org #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |