-
-
Notifications
You must be signed in to change notification settings - Fork 272
47 lines (38 loc) · 1.05 KB
/
integration-build.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
name: Archi Product Integration Build
on:
workflow_dispatch:
# schedule:
# - cron: '0 8 * * 1,4'
jobs:
integration-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: integration-build
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9
- name: Run tests and build product
run: |
xvfb-run mvn -V clean verify -P tests,product
- name: Today's date
run: |
echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Deploy to release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "com.archimatetool.editor.product/target/products/Archi-*.*"
prerelease: true
overwrite: true
tag_name: integration-build-${{ env.DATE }}