Enhance ConfigLoggingBundle to log a minimized Dropwizard configuration (with constructor default values excluded). #311
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://github.com/testingisdocumenting/znai/blob/master/.github/workflows/documentation-deploy.yaml | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
deploy-github-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
key: maven-znai-${{ hashFiles('**/pom.xml') }} | |
path: ~/.m2/repository | |
restore-keys: | | |
maven-znai- | |
maven- | |
- uses: actions/setup-java@v4 | |
with: | |
java-version-file: .tool-versions | |
distribution: oracle | |
- name: Set up grahpviz | |
run: sudo apt-get install graphviz | |
- name: Generate Znai docs | |
run: ./mvnw package --projects docs --also-make --activate-profiles 'znai-maven-plugin' | |
- name: Create deploy directory | |
if: github.event_name == 'push' | |
run: | | |
mkdir ./deploy | |
mv ./docs/target/docs/ ./deploy/ | |
cp ./docs/index.html ./deploy/ | |
- name: Push to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
if: github.event_name == 'push' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./deploy | |
cname: liftwizard.io | |
force_orphan: true | |
commit_message: "[skip ci] deploy to gh-pages" | |
- name: 'Clean Maven cache' | |
run: rm -rf ~/.m2/repository/io/liftwizard |