realweather/.github/workflows/build.yml

26 lines
568 B
YAML
Raw Permalink Normal View History

2024-01-14 15:12:35 +00:00
name: build
run-name: Build and package
2024-01-14 15:10:17 +00:00
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
2024-01-14 15:12:35 +00:00
- name: mvn clean package
run: mvn clean package
2024-01-14 15:10:17 +00:00
2024-01-20 12:10:10 +00:00
- name: Upload artifact
2024-01-20 12:11:15 +00:00
uses: actions/upload-artifact@v3
2024-01-14 15:10:17 +00:00
with:
name: Package
2024-01-20 12:10:10 +00:00
path: target/*.jar
if-no-files-found: error