-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (54 loc) · 1.57 KB
/
development.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
name: Development
on:
push:
branches:
- "development"
jobs:
deploy:
runs-on: ubuntu-latest
env:
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: 'development'
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'adopt'
- name: Cache
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Set POM version to staging
run: mvn $MAVEN_CLI_OPTS versions:set -DnewVersion=staging
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package
run: mvn $MAVEN_CLI_OPTS clean package -Dmaven.test.skip=true -Pdefault
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: artifact
path: target/dbvtk-development.war
retention-days: 1
dispatch:
needs: deploy
strategy:
matrix:
repo: [ 'keeps/dbptk-desktop', 'keeps/dbptk-enterprise' ]
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ matrix.repo }}
event-type: dispatch-development