-
Notifications
You must be signed in to change notification settings - Fork 22
57 lines (48 loc) · 1.87 KB
/
maven-snapshot.yml
File metadata and controls
57 lines (48 loc) · 1.87 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
name: Snapshot Deploy
on:
push:
branches:
- main
jobs:
deploy-snapshot:
runs-on: ubuntu-latest
if: github.repository == 'adobe/aio-lib-java' && github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Import GPG key
env:
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }}
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}
run: |
echo $GPG_SECRET_KEYS | base64 --decode | gpg --import --no-tty --batch --yes
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust --no-tty --batch --yes
- name: Setup JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 11
cache: maven
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: AEM6.5 Build
run: mvn clean deploy -DskipTests -Paem65deps,aem65,release
env:
MAVEN_USERNAME: ${{ secrets.AIO_MAVEN_USER_NAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.AIO_MAVEN_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: AEMaaCS Build
run: mvn clean deploy -PaemaacsDeps,aemaacs,release,attach-javadoc,attach-source
env:
MAVEN_USERNAME: ${{ secrets.AIO_MAVEN_USER_NAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.AIO_MAVEN_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Main Build
run: mvn clean deploy -DskipTests -Prelease
env:
MAVEN_USERNAME: ${{ secrets.AIO_MAVEN_USER_NAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.AIO_MAVEN_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}