Skip to content

Commit d87132e

Browse files
author
Stefan Kapferer
committed
Add manual workflow to trigger release
1 parent 1f1c9df commit d87132e

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Context Mapper Release Trigger
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
prepare_release:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- name: Set up JDK 11
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: 11
18+
server-id: github
19+
- name: Configure Git user
20+
run: |
21+
git config user.email "actions@github.com"
22+
git config user.name "GitHub Actions"
23+
- name: Install Graphviz
24+
run: sudo apt-get -y install graphviz
25+
- name: Cache local Maven repository
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/.m2/repository
29+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: |
31+
${{ runner.os }}-maven-
32+
- name: Grant execute permission for mvnw
33+
run: chmod +x mvnw
34+
- name: Prepare Release
35+
run: ./mvnw --settings ./.github/workflows/settings.xml clean release:prepare -B
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+

.github/workflows/settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<servers>
77
<server>
88
<id>github</id>
9-
<username>${env.GITHUB_USERNAME}</username>
10-
<password>${env.GITHUB_PASSWORD}</password>
9+
<username>stefan-ka</username>
10+
<password>${env.GITHUB_TOKEN}</password>
1111
</server>
1212
</servers>
1313
<profiles>

0 commit comments

Comments
 (0)