Skip to content

Bump org.openrewrite.recipe:rewrite-static-analysis from 1.5.0 to 1.6.0 #302

Bump org.openrewrite.recipe:rewrite-static-analysis from 1.5.0 to 1.6.0

Bump org.openrewrite.recipe:rewrite-static-analysis from 1.5.0 to 1.6.0 #302

Workflow file for this run

# 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