forked from mwiede/jsch
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.73 KB
/
Copy pathrelease.yml
File metadata and controls
55 lines (45 loc) · 1.73 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
name: Release with Maven
on:
workflow_dispatch:
create:
jobs:
# This workflow contains a single job called "build"
release:
# only run on the release branch
if: github.ref == 'refs/heads/release'
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: '25'
distribution: 'temurin'
- name: Set up Maven settings
uses: s4u/maven-settings-action@894661b3ddae382f1ae8edbeab60987e08cf0788 # v4.0.0
with:
githubServer: false
servers: |
[{
"id": "${env.MAVEN_REPO_SERVER_ID}",
"username": "${env.MAVEN_REPO_SERVER_USERNAME}",
"password": "${env.MAVEN_REPO_SERVER_PASSWORD}"
}]
# Runs a set of commands using the runners shell
- name: Execute Release
env:
RELEASE_BRANCH_NAME: "release"
GPG_ENABLED: "true"
GPG_KEY_ID: ${{ secrets.GPG_ID }}
GPG_KEY: ${{ secrets.GPG_KEY }}
MAVEN_REPO_SERVER_ID: ${{ secrets.MVN_CENTRAL }}
MAVEN_REPO_SERVER_USERNAME: ${{ secrets.MVN_CENTRAL_USER }}
MAVEN_REPO_SERVER_PASSWORD: ${{ secrets.MVN_CENTRAL_PASSWORD }}
MAVEN_ARGS: "-Dgpg.passphrase="
GIT_RELEASE_BOT_NAME: "release-bot"
GIT_RELEASE_BOT_EMAIL: "mwiede@gmx.de"
GITHUB_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: ./.github/workflows/release.sh