Since most commits to `master` are merges from developer's branches, the
job was never running in `master` and so docs were not getting
published.
- 'man/**'
- 'raddb/**'
- 'share/**'
+ schedule:
+ - cron: '1 20 * * *'
jobs:
build-docs:
runs-on: ubuntu-latest
-
+ if: github.repository_owner == 'FreeRADIUS' || github.event_name != 'schedule'
strategy:
fail-fast: true
# Actual deployment to GitHub Pages is only on pushes to the head of the master branch
deploy-doxygen-docs:
- if: ( github.repository_owner == 'FreeRADIUS' ) && ( github.ref == 'refs/heads/master' ) && ( github.event_name == 'push' )
+ if: ( github.repository_owner == 'FreeRADIUS' ) && ( github.ref == 'refs/heads/master' ) && (( github.event_name == 'push' ) || ( github.event_name == 'schedule' ))
needs:
- build-docs
uses: actions/deploy-pages@v4
deploy-antora-docs:
- if: ( github.repository_owner == 'FreeRADIUS' ) && ( github.ref == 'refs/heads/master' ) && ( github.event_name == 'push' )
+ if: ( github.repository_owner == 'FreeRADIUS' ) && ( github.ref == 'refs/heads/master' ) && (( github.event_name == 'push' ) || ( github.event_name == 'schedule' ))
needs:
- build-docs