Skip to content

Merge pull request #2 from season101/projects #20

Merge pull request #2 from season101/projects

Merge pull request #2 from season101/projects #20

Workflow file for this run

name: Build and Deploy Jekyll Site
on:
push:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install Jekyll and Bundler
run: |
gem install bundler
bundle install
- name: Build Jekyll site
run: |
bundle exec jekyll build
echo "Jekyll Site Built Successfully..."
- name: Deploy to S3
run: |
echo "Syncing Jekyll site to S3..."
aws s3 sync _site/ s3://${{secrets.AWS_S3_BUCKET}}