mirror of
https://github.com/maxkratz/maven-code-gen-example.git
synced 2024-05-18 12:01:41 +00:00
29 lines
692 B
YAML
29 lines
692 B
YAML
name: CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [ubuntu-22.04]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
- name: Set up Maven
|
|
uses: stCarolas/setup-maven@v5
|
|
with:
|
|
maven-version: 3.9.6
|
|
- name: Build with Maven
|
|
run: |
|
|
cd org.example.codegen
|
|
mvn --batch-mode --update-snapshots package
|
|
- name: Upload build artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: org.example.codegen
|
|
path: org.example.codegen/target/org.example.codegen-*.jar
|