-
-
Notifications
You must be signed in to change notification settings - Fork 75
41 lines (39 loc) · 1.33 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Nightly
on:
push:
branches:
- master
jobs:
build:
if: contains(github.event.head_commit.message, '[NOBUILD]') == false
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/cache@v1
with:
path: ~/.mvnJlinkCache
key: ${{ runner.os }}-mvnJlinkCache-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-mvnJlinkCache-
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
distribution: liberica
java-version: 21
architecture: x64
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v4
with:
servers: '[{ "id": "github", "privateKey": "${{ secrets.DEPLOYMENT_KEY }}", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
- name: Maven stats
run: ./mvnw.cmd -version
- name: Package
run: ./mvnw.cmd -B package -DexcludedGroups=ui
- name: Deploy to nightly
run: ./mvnw.cmd --% -B de.jutzig:github-release-plugin:release@deploy-nightly -pl milkman-dist