From 7d8dfe381bdc7d40107534a3619fd3248de7c171 Mon Sep 17 00:00:00 2001 From: "Dr. Jan Philip Bernius" Date: Sun, 7 Jan 2024 00:23:33 +0100 Subject: [PATCH] ci: setup actions to build html --- .github/workflows/man.yaml | 41 ++++++++++++++++++++++++++++++++++++++ Gemfile | 3 +++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/man.yaml create mode 100644 Gemfile diff --git a/.github/workflows/man.yaml b/.github/workflows/man.yaml new file mode 100644 index 0000000..6a1d557 --- /dev/null +++ b/.github/workflows/man.yaml @@ -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 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..0643ca6 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source "https://rubygems.org" + +gem "ronn-ng"