Skip to content

Commit

Permalink
Remove asciidoctor hack in favor of setup action.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitzig committed May 28, 2020
1 parent 454a000 commit 569951f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 32 deletions.
25 changes: 0 additions & 25 deletions .github/scripts/reroute_asciidoctor.sh

This file was deleted.

17 changes: 10 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Pages
name: Deploy GitHub Pages

on:
push:
Expand All @@ -13,18 +13,21 @@ jobs:
with:
submodules: true

# Does not provide asciidoctor out of the box :(
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- name: Setup asciidoctor
run: |
sudo gem update --system 3.0.6 # cf. https://github.com/rubygems/rubygems/issues/3068#issuecomment-574775885
sudo gem install asciidoctor
sudo .github/scripts/reroute_asciidoctor.sh
ruby --version; gem --version; asciidoctor --version
uses: reitzig/actions-asciidoctor@master
# TODO: @v1
with:
options: "-a experimental=true -a icons=font"

- name: Build
run: hugo --minify
Expand Down

0 comments on commit 569951f

Please sign in to comment.