From 06b294feec3170419020873d20537ca8f47b2291 Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Mon, 26 Feb 2024 20:45:57 -0500 Subject: [PATCH] [Actions] Pivoting hard to setup-ruby approach --- .forgejo/workflows/publish.yaml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index 48e0d2d..fbf7fd7 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -1,20 +1,12 @@ on: [push] jobs: jekyll: - runs-on: docker - container: - image: jekyll/builder:latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: | - ls ${{ github.workspace }} - - run: | - ls $(pwd) - - run: | - cd ${{ github.workspace }} - - name: Update Gems - run: bundle update - - name: Build Site - run: jekyll build - - run: | - ls ${{ github.workspace }} + - uses: https://github.com/ruby/setup-ruby@v1 + with: + ruby-version: '3.3' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - run: bundle install + - run: jekyll help