Skip to content

Commit

Permalink
Extract Install guide dependencies composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFluet committed Dec 20, 2024
1 parent 691a79e commit 96fb956
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/actions/install-guide-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Install guide dependencies'
description: 'Install dependencies to build MLton guide'
runs:
using: "composite"
steps:
- name: Install AsciiDoctor
shell: 'bash'
run: sudo gem install asciidoctor
- name: Install Rouge
shell: 'bash'
run: sudo gem install rouge
9 changes: 4 additions & 5 deletions .github/workflows/guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -31,10 +32,8 @@ jobs:
SSH_CONFIG: ${{ secrets.MLTON_WEBMASTER_SSH_CONFIG }}
SSH_KNOWN_HOSTS: ${{ secrets.MLTON_WEBMASTER_SSH_KNOWN_HOSTS }}

- name: Install AsciiDoctor
run: sudo gem install asciidoctor
- name: Install Rouge
run: sudo gem install rouge
- name: Install guide dependencies
uses: ./.github/actions/install-guide-dependencies

- name: Build
run: make -j 2 -C doc/guide mlton.sourceforge.io
Expand Down

0 comments on commit 96fb956

Please sign in to comment.