Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 22 additions & 24 deletions .github/workflows/appcast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
14 changes: 14 additions & 0 deletions AppCast/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Loading