-
Notifications
You must be signed in to change notification settings - Fork 25
72 lines (63 loc) · 3.01 KB
/
maven-publish-parent.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
60
61
62
63
64
65
66
67
68
69
70
71
72
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: admin4j-parent deploy
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: install admin4j-dependencies
run: mvn clean && mvn clean install -Dmaven.test.skip=true --file admin4j-dependencies/pom.xml
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GITHUB_TOKEN: ${{ github.token }}
- name: deploy framework
run: mvn install -Dmaven.test.skip=true -N --file ./pom.xml
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GITHUB_TOKEN: ${{ github.token }}
- name: deploy admin4j-parent
run: mvn install deploy -Possrh -Dmaven.test.skip=true --file admin4j-parent/pom.xml
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GITHUB_TOKEN: ${{ github.token }}
- name: deploy spring-boot-parent
run: mvn clean install deploy -Possrh -Dmaven.test.skip=true --file spring-boot-parent/pom.xml
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GITHUB_TOKEN: ${{ github.token }}
# - name: deploy admin4j framework
# run: mvn clean install deploy -Dmaven.test.skip=true --file admin4j-common/pom.xml &&
# mvn clean install deploy -Dmaven.test.skip=true --file admin4j-common-spring/pom.xml
# mvn clean install deploy -Dmaven.test.skip=true --file admin4j-common-spring-web/pom.xml
# mvn clean install deploy -Dmaven.test.skip=true --file log-spring-boot-starter/pom.xml
# mvn clean install deploy -Dmaven.test.skip=true --file test-spring-boot-starter/pom.xml
# mvn clean install deploy -Dmaven.test.skip=true --file web-spring-boot-starter/pom.xml
# env:
# MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
# MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
# MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# GITHUB_TOKEN: ${{ github.token }}