forked from hub4j/github-api
-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (51 loc) · 1.78 KB
/
release.yml
File metadata and controls
58 lines (51 loc) · 1.78 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Release
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v3
with:
token: ${{ secrets.FORESIGHT_GITHUB_TOKEN }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'adopt'
cache: 'maven'
- name: Configure CI Git User
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
- name: Configure Maven settings.xml
uses: whelk-io/maven-settings-xml-action@v14
with:
repositories: >-
[
{
"id": "foresight-3rdparty-releases",
"url": "https://repo.thundra.io/content/repositories/foresight-3rdparty-releases",
"releases": {
"enabled": "true"
},
"snapshots": {
"enabled": "false"
}
}
]
servers: >-
[
{
"id": "foresight-3rdparty-releases",
"username": "${{ secrets.THUNDRA_INTERNAL_REPO_USERNAME}}",
"password": "${{ secrets.THUNDRA_INTERNAL_REPO_PASSWORD}}"
}
]
- name: Build and Release with Maven
env:
GITHUB_TOKEN: ${{ secrets.FORESIGHT_GITHUB_TOKEN }}
run: mvn clean install -DskipTests -Darguments=-DskipTests release:clean release:prepare release:perform release:clean --batch-mode -P foresight-release