realweather/.github/workflows/build.yml

25 lines
552 B
YAML
Raw Normal View History

2024-01-14 16:12:35 +01:00
name: build
run-name: Build and package
2024-01-14 16:10:17 +01: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 16:12:35 +01:00
- name: mvn clean package
run: mvn clean package
2024-01-14 16:10:17 +01:00
- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v3
with:
name: Package
path: staging