Skip to content

Merge pull request #7 from rabbitmq/protect-against-infinite-loop-in-… #60

Merge pull request #7 from rabbitmq/protect-against-infinite-loop-in-…

Merge pull request #7 from rabbitmq/protect-against-infinite-loop-in-… #60

Workflow file for this run

name: Documentation
on:
push:
branches:
- 'main'
jobs:
Documentation:
name: Generate and publish documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: 26
rebar3-version: '3.22.1'
- name: Change doc version to "Development branch"
run: sed -E -i -e 's/^@version.*/@version Development branch/' doc/overview.edoc
- name: Generate
run: rebar3 edoc
- name: Publish
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc