0
0
Fork 0

ci: setup actions to build html

This commit is contained in:
Dr. Jan Philip Bernius 2024-01-07 00:23:33 +01:00
parent 66e4197c90
commit 7d8dfe381b
SSH key fingerprint: SHA256:f2qOuPGT+3tHdbcGA2sx/HbsTYZNDy7Dli4qohJ5ZT8
2 changed files with 44 additions and 0 deletions

41
.github/workflows/man.yaml vendored Normal file
View file

@ -0,0 +1,41 @@
name: man jpbernius
on:
push:
branches: [ "man" ]
jobs:
html:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: ronn --html
run: bundle exec ronn --html --style=toc --organization="Jan Philip Bernius" README.md
- run: |
mkdir -p out
mv README.1.html out/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'out'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

3
Gemfile Normal file
View file

@ -0,0 +1,3 @@
source "https://rubygems.org"
gem "ronn-ng"