Skip to content

Build and Deploy Jekyll Site #18

Build and Deploy Jekyll Site

Build and Deploy Jekyll Site #18

Workflow file for this run

name: Build and Deploy Jekyll Site
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Install dependencies
run: bundle install
- name: Build Jekyll site
run: bundle exec jekyll build
- name: Sync to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-2'
S3_BUCKET: 'support.hdfgroup.org'
run: |
aws s3 sync _site/ s3://$S3_BUCKET --delete