-
Notifications
You must be signed in to change notification settings - Fork 57
59 lines (50 loc) · 1.61 KB
/
deployment.yml
File metadata and controls
59 lines (50 loc) · 1.61 KB
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
59
name: Publish JAR on tagging
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Maven build
run: mvn -B install -Ppedantic
- name: Maven package
run: mvn -B antrun:run@prepare-github-release -Ppedantic,prepare-release
- name: Read version from Maven
run: |
echo "release_version=$(mvn -q \
-Dexec.executable=echo \
-Dexec.args='${project.version}' \
--non-recursive \
org.codehaus.mojo:exec-maven-plugin:3.1.0:exec)" >> $GITHUB_ENV
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: odftoolkit-${{ env.release_version }}
- name: Upload binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/**/*.*
file_glob: true
overwrite: true
body: "Support of **ODF 1.2** and >=**JDK 17**\n
\n
Detailed documentation:\n
https://tdf.github.io/odftoolkit/ReleaseNotes.html#release-${{ env.release_version }}\n
\n
Available via Maven repository:\n
https://central.sonatype.com/artifact/org.odftoolkit/odfdom-java/${{ env.release_version }}/overview\n
https://repo1.maven.org/maven2/org/odftoolkit/odfdom-java/${{ env.release_version }}/\n
\n"