Skip to content

Commit

Permalink
Switch from "apt install" to ruby/setup-ruby@v1 GitHub Action
Browse files Browse the repository at this point in the history
Use official ruby/setup-ruby@v1 GitHub Action to get the Ruby "bundle"
executable in .github/workflows/jekyll-asciidoc.yml
as recommended by Aleksandr Chebotov (@al-cheb) at
actions/runner-images#3573 (comment)
and as documented in https://github.com/limjh16/jekyll-action-ts#use-the-action

Fixes #13
  • Loading branch information
anthonyfok committed Feb 26, 2022
1 parent b9d9a7f commit 4c8a8d5
Showing 1 changed file with 13 additions and 32 deletions.
45 changes: 13 additions & 32 deletions .github/workflows/jekyll-asciidoc.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,30 @@
name: Build and deploy Jekyll site

on:
push:
branches: [ gh-pages-source, master ]
branches:
- 'gh-pages-source'
pull_request:
branches: [ gh-pages-source, master ]
branches:
- 'gh-pages-source'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
jekyll:
name: Jekyll with AsciiDoc
runs-on: ubuntu-20.04
build-and-deploy-jekyll-site:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: 📂 Checkout code
uses: actions/checkout@v2
with:
# The branch, tag or SHA to checkout. When checking out the repository that
# triggered a workflow, this defaults to the reference or SHA for that event.
# Otherwise, uses the default branch.
ref: gh-pages-source

# Runs a set of commands using the runners shell
- name: Discover some system information
run: |
date
cat /etc/os-release
uname -a
cat /proc/cpuinfo
git branch -a
pwd
ls -l /usr/local/bin/bundle || echo "/usr/local/bin/bundle not found"
ls -l /usr/local/bin/bundler || echo "/usr/local/bin/bundler not found"
type bundle || echo "type bundle failed"
type bundler || echo "type bundler failed"
#ls -lR
df -h
free -h
dpkg -l
- name: Install /usr/bin/bundle (/usr/local/bin/bundle is no more)
run: |
sudo apt update
sudo apt install -y ruby-bundler
- name: 💎 setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- name: 🔨 install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
Expand Down

0 comments on commit 4c8a8d5

Please sign in to comment.