Skip to content

Merge pull request #42 from lip6/dependabot/github_actions/actions/se… #35

Merge pull request #42 from lip6/dependabot/github_actions/actions/se…

Merge pull request #42 from lip6/dependabot/github_actions/actions/se… #35

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ master ]
repository_dispatch:
types: [rebuild]
jobs:
build:
name: Maven
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3.13.0
with:
java-version: 11
distribution: 'zulu'
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -e generate-sources install
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.4.2
with:
branch: gh-pages # The branch the action should deploy to.
folder: update-site/target/repository # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
single-commit: true