From eb32f565bc4f59f77b5d3d64f88699161d46f0dd Mon Sep 17 00:00:00 2001 From: Felix <8057646+GoliathLabs@users.noreply.github.com> Date: Sun, 5 Jan 2025 12:34:08 -0800 Subject: [PATCH] Update stage-deploy.yml --- .github/workflows/stage-deploy.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/stage-deploy.yml b/.github/workflows/stage-deploy.yml index c84aefc..b375cb0 100644 --- a/.github/workflows/stage-deploy.yml +++ b/.github/workflows/stage-deploy.yml @@ -1,16 +1,25 @@ name: Build -on: [pull_request, push] + +on: + pull_request: + push: + jobs: build-and-deploy: runs-on: ubuntu-latest + steps: - - name: Checkout 🛎️ + - name: Checkout Repository uses: actions/checkout@v4 - - uses: actions/cache@v4.2.0 + - name: Set up Ruby environment + uses: ruby/setup-ruby@v1 with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- - - uses: lemonarc/jekyll-action@1.0.0 \ No newline at end of file + ruby-version: '3.2' + bundler-cache: true # Enables caching for Bundler + + - name: Install dependencies + run: bundle install --jobs 4 --retry 3 + + - name: Build Jekyll site + run: bundle exec jekyll build