forked from IQSS/dataverse
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (29 loc) · 1.01 KB
/
generate_war_file.yml
File metadata and controls
37 lines (29 loc) · 1.01 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
name: 'Generate dataverse war file'
on:
workflow_dispatch:
inputs:
buildlabel:
description: 'Custom label that will appear after the version number (the equivalent of the old "build number" entry). Leaving it empty will default to the legacy behavior, i.e. " build <branch>-<checksum>".'
type: string
required: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: '21'
- name: Set build number
run: scripts/installer/custom-build-number "${{ github.event.inputs.buildlabel }}"
- name: Build application war
run: mvn package
- name: Get war file name
working-directory: target
run: echo "war_file=$(ls *.war | head -1)">> $GITHUB_ENV
- name: Upload war artifact
uses: actions/upload-artifact@v7
with:
name: built-app
path: ./target/${{ env.war_file }}