summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2025-11-27 20:38:00 +0100
committerGitHub2025-11-27 20:38:00 +0100
commit3a03e384f55a735ab6a7c4e65997b9221b891251 (patch)
tree0e6e68bb9ab01f1b9b47bd0a7379c5dd116da2ca
parent4dd009133ae51f934187aefd750f3a7010bfef5c (diff)
build: update ci (#226)
-rw-r--r--.github/workflows/ci.yml58
-rw-r--r--.github/workflows/release.yml26
-rw-r--r--.github/workflows/test.yml27
-rw-r--r--.release-please-manifest.json3
-rw-r--r--release-please-config.json11
5 files changed, 98 insertions, 27 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..eaee101
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,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.2/onkostar-api-2.14.2.jar \
+ --output ${{ github.workspace }}/libs/onkostar-api-2.14.2.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.2/onkostar-api-2.14.2.jar \
+ --output ${{ github.workspace }}/libs/onkostar-api-2.14.2.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
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..d0d5596
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,26 @@
+name: release-please
+
+on:
+ push:
+ branches: [ 'master' ]
+
+permissions:
+ contents: read
+
+jobs:
+ release-please:
+ name: run release-please
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ pull-requests: write
+ steps:
+ - uses: actions/create-github-app-token@v2
+ id: app-token
+ with:
+ app-id: ${{ secrets.RELEASE_APP_ID }}
+ private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
+ owner: ${{ github.repository_owner }}
+ - uses: googleapis/release-please-action@v4
+ with:
+ token: ${{ steps.app-token.outputs.token }} \ No newline at end of file
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
deleted file mode 100644
index 769751e..0000000
--- a/.github/workflows/test.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: 'Run Tests'
-
-on:
- push:
- branches: [ 'master' ]
- tags: [ '*' ]
- pull_request:
- branches: [ '*' ]
-
-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.2/onkostar-api-2.14.2.jar \
- --output ${{ github.workspace }}/libs/onkostar-api-2.14.2.jar
-
- - name: Execute tests
- run: mvn --batch-mode verify \ No newline at end of file
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
new file mode 100644
index 0000000..895bf0e
--- /dev/null
+++ b/.release-please-manifest.json
@@ -0,0 +1,3 @@
+{
+ ".": "2.0.0"
+}
diff --git a/release-please-config.json b/release-please-config.json
new file mode 100644
index 0000000..822de31
--- /dev/null
+++ b/release-please-config.json
@@ -0,0 +1,11 @@
+{
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/refs/heads/main/schemas/config.json",
+ "bump-minor-pre-major": true,
+ "bump-patch-for-minor-pre-major": true,
+ "include-v-in-tag": true,
+ "include-component-in-tag": false,
+ "release-type": "maven",
+ "packages": {
+ ".": { }
+ }
+}