Bump commons-io:commons-io from 2.9.0 to 2.14.0 #10
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
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Build with Maven | |
env: | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
run: | | |
if [[ "$GITHUB_REF" =~ ^refs/tags/ ]]; then | |
PHASES="install site" | |
elif [[ "$GITHUB_REF" = "refs/heads/main" ]]; then | |
PHASES="deploy" | |
else | |
PHASES="verify" | |
fi | |
mvn -B -s config/settings.ci.xml $PHASES -PrunITs | |
- name: Report code coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |
run: mvn -B test jacoco:report coveralls:report -pl :bowman-client | |
- uses: actions/upload-pages-artifact@v1 | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
with: | |
path: client/target/generated-docs | |
deploy-pages: | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |