-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (54 loc) · 2.05 KB
/
release.yml
File metadata and controls
54 lines (54 loc) · 2.05 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
name: release-wf
on:
workflow_dispatch:
inputs:
release-version:
description: 'The Version to be released'
required: true
default: '0.0.0'
type: string
jobs:
release:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Build Packages (without tests)
run: ./mvnw -P build-deploy clean package -Dmaven.test.skip=true
- name: Build Deploy Path
shell: bash
run: echo "DEPLOY_PATH=$( echo '${{ secrets.DEPLOYMENT_REMOTE_TARGET }}/extended-java-model-parser-and-printer' )" >> $GITHUB_ENV
- name: Release Update Site
uses: PalladioSimulator/Palladio-Build-ActionsPipeline-Deployment@v3
with:
remote-user: ${{ secrets.DEPLOYMENT_REMOTE_USER }}
remote-host: ${{ secrets.DEPLOYMENT_REMOTE_HOST }}
remote-port: ${{ secrets.DEPLOYMENT_REMOTE_PORT }}
server-ssh-key: ${{ secrets.DEPLOYMENT_SERVER_SSH_KEY }}
local-source: './jamopp.p2/target/repository/*'
remote-target: '${{ env.DEPLOY_PATH }}/release/${{ inputs.release-version }}'
release-version: ${{ inputs.release-version }}
link-path: ${{ env.DEPLOY_PATH }}
- name: Setup Apache Maven Central
uses: actions/setup-java@4.7.1
with:
java-version: 17
distribution: 'temurin'
server-id: central
server-username: CENTRAL_USERNAME
server-password: CENTRAL_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
cache: 'maven'
- name: Deploy to Apache Maven Central
run: mvn -P deploy-mvn-central deploy
env:
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
MAVEN_GPG_PASSPHRASE: $${{ secrets.MAVEN_GPG_PASSPHRASE }}