realweather/.github/workflows/build.yml
2024-01-20 12:10:10 +00:00

25 lines
568 B
YAML

name: build
run-name: Build and package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17 for x64
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
architecture: x64
- name: mvn clean package
run: mvn clean package
- name: Upload artifact
- uses: actions/upload-artifact@v3
with:
name: Package
path: target/*.jar
if-no-files-found: error