-
-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (36 loc) · 1 KB
/
on-push-main.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
42
name: Release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources 🔰
uses: actions/checkout@v3
- name: Set up Java 📐
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Build artifacts 🏗️
run: mvn clean package -B
- name: Create maven settings.xml with credentials
uses: whelk-io/maven-settings-xml-action@v2
with:
servers: |
[
{ "id": "nexus.terrestris.de-releases", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" }
]
- name: Semantic release
id: semantic
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19
extra_plugins: |
@semantic-release/changelog@6
@terrestris/maven-semantic-release@2
@semantic-release/git@10
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}