From 326ff06b1f7d47d07642de683a1a1b0b3df620f3 Mon Sep 17 00:00:00 2001 From: MishalAbdullah <85678545+Mishalabdullah@users.noreply.github.com> Date: Sun, 12 May 2024 12:18:48 +0530 Subject: [PATCH] Update jekyll.yml --- .github/workflows/jekyll.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 5858861..f880d81 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -1,3 +1,4 @@ +--- # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support @@ -6,7 +7,6 @@ # Sample workflow for building and deploying a Jekyll site to GitHub Pages name: Deploy Jekyll site to Pages - on: # Runs on pushes targeting the default branch push: @@ -39,7 +39,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 with: - ruby-version: '3.1' # Not needed with a .ruby-version file + ruby-version: "3.1" # Not needed with a .ruby-version file bundler-cache: true # runs 'bundle install' and caches installed gems automatically cache-version: 0 # Increment this number if you need to re-download cached gems - name: Setup Pages @@ -48,15 +48,13 @@ jobs: - name: Build Jekyll site working-directory: events run: | - bundle config set --local path events/ - bundle install --gemfile=events/Gemfile - bundle exec jekyll build - + bundle config set --local path events/ + bundle install --gemfile=events/Gemfile + bundle exec jekyll build - name: Upload artifact - with: - path : events uses: actions/upload-pages-artifact@v3 - + with: + path: events # Deployment job deploy: @@ -66,6 +64,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + path: mucampus-events # Specify the desired directory path - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4