Skip to content

Use ronn-ng for builds #43

Use ronn-ng for builds

Use ronn-ng for builds #43

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
concurrency: ci-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Clone ronn-ng repository
uses: GuillaumeFalourd/[email protected]
with:
depth: 1
branch: 'main'
owner: 'ibokuri'
repository: 'ronn-ng'
- name: Install Ruby and Bundler; Install ronn-ng dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
working-directory: ronn-ng/
bundler-cache: true
cache-version: 1
- name: Make site directory
run: mkdir public
- name: Build site files
run: |
cd ronn-ng/
bundle exec bin/ronn \
--html \
--output-dir="../public/" \
--manual="General Commands Manual" \
--section=1 \
--name="danh.computer" \
../md/*.md
- name: Clean up
run: |
cd -
rm -rf ronn-ng/
- name: Add CNAME file
run: echo "danh.computer" > public/CNAME
- name: Deploy site
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: www
FOLDER: public
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}