From 5f4f9ccbc6ed81f8ea7eb4c4a0e96330ce36e158 Mon Sep 17 00:00:00 2001 From: Matt Kiazyk Date: Tue, 10 Nov 2026 14:23:00 -0500 Subject: [PATCH] Fix AppCast builds and refresh GitHub Pages after publishing --- .github/workflows/appcast.yml | 46 +++++++++++++++++------------------ AppCast/Gemfile.lock | 14 +++++++++++ 2 files changed, 36 insertions(+), 24 deletions(-) diff --git a/.github/workflows/appcast.yml b/.github/workflows/appcast.yml index a47c7113..7a907ded 100644 --- a/.github/workflows/appcast.yml +++ b/.github/workflows/appcast.yml @@ -3,48 +3,46 @@ name: Build and publish a new appcast file on: workflow_dispatch: release: + types: [published] jobs: jekyll: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 + permissions: + contents: write + pages: write steps: - name: Checkout 🛎 - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: - # If you're using actions/checkout@v4 you must set persist-credentials to false in most cases for the deployment to work correctly. persist-credentials: false -# - name: Cache 📦 -# uses: actions/cache@v4.1.1 -# with: -# path: AppCast/vendor/bundle -# key: ${{ runner.os }}-gems-v1.0-${{ hashFiles('AppCast/Gemfile') }} -# restore-keys: | -# ${{ runner.os }}-gems- - - - name: Setup Ruby, JRuby and TruffleRuby - uses: ruby/setup-ruby@v1.197.0 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 with: - ruby-version: '3.0' - - - name: Bundler 💎 - working-directory: AppCast - env: - BUNDLE_PATH: vendor/bundle - run: | - gem install bundler - bundle install + ruby-version: '3.4' + working-directory: AppCast + bundler-cache: true - name: Build 🛠 working-directory: AppCast env: - BUNDLE_PATH: vendor/bundle JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: bundle exec jekyll build - + - name: Publish 🚀 + # Manual runs on branches other than the default branch only build the feeds. + if: github.event_name == 'release' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch) + id: publish uses: JamesIves/github-pages-deploy-action@releases/v4 with: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages folder: AppCast/_site + + - name: Request GitHub Pages build + # Pushes made with GITHUB_TOKEN don't trigger a branch-based Pages build. + if: steps.publish.outcome == 'success' + env: + GH_TOKEN: ${{ github.token }} + run: gh api --method POST "repos/$GITHUB_REPOSITORY/pages/builds" diff --git a/AppCast/Gemfile.lock b/AppCast/Gemfile.lock index 712fe9d3..f02916ae 100644 --- a/AppCast/Gemfile.lock +++ b/AppCast/Gemfile.lock @@ -18,14 +18,22 @@ GEM ruby2_keywords faraday-net_http (1.0.1) ffi (1.17.2) + ffi (1.17.2-arm64-darwin) ffi (1.17.2-x86_64-darwin) + ffi (1.17.2-x86_64-linux-gnu) forwardable-extended (2.6.0) google-protobuf (4.31.1) bigdecimal rake (>= 13) + google-protobuf (4.31.1-arm64-darwin) + bigdecimal + rake (>= 13) google-protobuf (4.31.1-x86_64-darwin) bigdecimal rake (>= 13) + google-protobuf (4.31.1-x86_64-linux-gnu) + bigdecimal + rake (>= 13) http_parser.rb (0.8.0) i18n (1.14.7) concurrent-ruby (~> 1.0) @@ -83,8 +91,12 @@ GEM sass-embedded (1.89.2) google-protobuf (~> 4.31) rake (>= 13) + sass-embedded (1.89.2-arm64-darwin) + google-protobuf (~> 4.31) sass-embedded (1.89.2-x86_64-darwin) google-protobuf (~> 4.31) + sass-embedded (1.89.2-x86_64-linux-gnu) + google-protobuf (~> 4.31) sawyer (0.8.2) addressable (>= 2.3.5) faraday (> 0.8, < 2.0) @@ -100,8 +112,10 @@ GEM webrick (1.9.1) PLATFORMS + arm64-darwin ruby x86_64-darwin-20 + x86_64-linux-gnu DEPENDENCIES jekyll (~> 4.4.1)