-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 1.05 KB
/
maven-release.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
43
44
name: Maven Package and Release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
repository-projects: write
packages: write
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Release
uses: qcastel/[email protected]
env:
JAVA_HOME: /usr/lib/jvm/java-17-openjdk/
with:
git-release-bot-name: "cosad3s (bot)"
git-release-bot-email: "[email protected]"
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Get the new tag
id: get_tag
run: echo "::set-output name=tag::$(git describe --tags $(git rev-list --tags --max-count=1))"
- name: Create the release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ steps.get_tag.outputs.tag }}
tag_name: ${{ steps.get_tag.outputs.tag }}
files: |
target/salsa-jar-with-dependencies.jar
make_latest: true
token: ${{ github.token }}