blob: eaa49bd0b6d370cc56c702ce0c7e50a00fb3122d (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
name: CI
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
release:
types: [ 'created' ]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Fetch Onkostar-API
run: |
curl -L --user dnpm:${{ secrets.PACKAGE_TOKEN }} \
https://git.dnpm.dev/api/packages/Plugin-JF-Onkostar/generic/onkostar-api/2.14.0/onkostar-api-2.14.0.jar \
--output ${{ github.workspace }}/libs/onkostar-api-2.14.0.jar
- name: Execute tests
run: mvn --batch-mode verify
build:
runs-on: ubuntu-latest
needs:
- tests
permissions:
contents: write
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Fetch Onkostar-API
run: |
curl -L --user dnpm:${{ secrets.PACKAGE_TOKEN }} \
https://git.dnpm.dev/api/packages/Plugin-JF-Onkostar/generic/onkostar-api/2.14.0/onkostar-api-2.14.0.jar \
--output ${{ github.workspace }}/libs/onkostar-api-2.14.0.jar
- name: Maven package build
run: mvn --batch-mode package
- name: Release
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
uses: softprops/action-gh-release@v2
with:
files: |
target/*.jar
forms/dnpm-formulare.osc
|