Fixed cache-articles.rb to work with GitHub Actions. #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build HTML pages from Markdown | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Ruby | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 3.0 # Choose the Ruby version you need | |
- name: Install Kramdown | |
run: | | |
gem install kramdown | |
gem install kramdown-parser-gfm | |
- name: Install ERB | |
run: gem install erb | |
- name: Convert Markdown to HTML | |
run: | | |
mkdir articles-html | |
ruby cache-articles.rb |