Use ronn-ng for builds #40
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: Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: ci-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3' | |
bundler-cache: true | |
- name: Clone ronn-ng | |
uses: GuillaumeFalourd/[email protected] | |
with: | |
depth: 1 | |
branch: 'main' | |
owner: 'ibokuri' | |
repository: 'ronn-ng' | |
- name: Build site files | |
run: | | |
mkdir public/ | |
cd ronn-ng/ | |
pwd | |
bundle exec bin/ronn \ | |
--html \ | |
--output-dir="../public/" \ | |
--manual="General Commands Manual" \ | |
--section=1 \ | |
--name="danh.computer" \ | |
../md/*.md | |
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 }} |