forked from prebid/prebid-server-java
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.33 KB
/
release-asset-publish.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: Publish release .jar
on:
workflow_run:
workflows: [Publish release]
types:
- completed
jobs:
build:
name: Publish release .jar
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 21 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
cache: 'maven'
java-version: ${{ matrix.java }}
- name: Build base .jar via Maven
run: mvn clean package -Dcheckstyle.skip -Dmaven.test.skip=true
- name: Upload and attach base .jar to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/prebid-server.jar
asset_name: prebid-server-${{ github.ref_name }}.jar
tag: ${{ github.ref }}
- name: Build bundled .jar via Maven
run: mvn clean package --file extra/pom.xml -Dcheckstyle.skip -Dmaven.test.skip=true
- name: Upload and attach bundled .jar to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: extra/bundle/target/prebid-server-bundle.jar
asset_name: prebid-server-bundle-${{ github.ref_name }}.jar
overwrite: true
tag: ${{ github.ref }}