From 5eaaf6a4982e23643d602e4628cdb9de11b53271 Mon Sep 17 00:00:00 2001 From: Tanvi Pooranmal Meena Date: Fri, 27 Dec 2024 01:16:43 +0530 Subject: [PATCH] Add GitHub Actions workflow for automated builds --- .github/workflows/jekyll.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/jekyll.yml diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 000000000..e02bd37a7 --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -0,0 +1,29 @@ +name: Build Jekyll Site + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Mark /github/workspace as safe + run: git config --global --add safe.directory /github/workspace + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + + - name: Install dependencies + run: bundle install + + - name: Build site + run: bundle exec jekyll build