-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (71 loc) · 2.85 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Create release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+-?**"
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: run maven
run: mvn --batch-mode --update-snapshots package
- name: create release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body_path: CHANGES.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: upload jar file to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bindings/target/icu-xpath-bindings-${{ github.ref_name }}.jar
asset_name: icu-xpath-bindings-${{ github.ref_name }}.jar
asset_content_type: application/java-archive
- name: upload jar file with dependencies to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bindings/target/icu-xpath-bindings-${{ github.ref_name }}-with-dependencies.jar
asset_name: icu-xpath-bindings-${{ github.ref_name }}-with-dependencies.jar
asset_content_type: application/java-archive
- name: build for oxygen 24
run: mvn -Doxygen.version=24 --batch-mode --update-snapshots clean package
- name: upload oxygen plugin to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: oxygen/target/icu-xpath-oxygen24-${{ github.ref_name }}-plugin.jar
asset_name: icu-xpath-oxygen24-${{ github.ref_name }}-plugin.jar
asset_content_type: application/java-archive
- name: build for oxygen 25
run: mvn -Doxygen.version=25 --batch-mode --update-snapshots clean package
- name: upload oxygen plugin to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: oxygen/target/icu-xpath-oxygen25-${{ github.ref_name }}-plugin.jar
asset_name: icu-xpath-oxygen25-${{ github.ref_name }}-plugin.jar
asset_content_type: application/java-archive