-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·40 lines (32 loc) · 1.14 KB
/
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
name: release
on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v4
- name: Set up JDK with Dependency Caching
id: java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Get tag version
id: get_version
uses: battila7/get-version-action@v2
- name: execute a keytool import function
shell: bash
run: sudo keytool -importcert -noprompt -trustcacerts -v -alias onerecord -file src/main/resources/onerecord.iata.org.cer -keystore ${{ steps.java.outputs.path }}/lib/security/cacerts -storepass changeit
- name: Create release artifacts
run: ./mvnw -Drevision=${{ steps.get_version.outputs.version-without-v }} clean package
- name: Release without Changelog
uses: softprops/action-gh-release@v1
with:
name: ONE.Record Ontology-DataModel Library ${{ steps.get_version.outputs.version-without-v }}
files: |
target/*.jar