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"