-
Notifications
You must be signed in to change notification settings - Fork 40
48 lines (41 loc) · 1.32 KB
/
docs.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
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
workflow_dispatch:
name: Release Docs
jobs:
release_docs:
name: "Release docs"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Cache maven repository"
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Setup java"
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
- name: "Setup signing key"
run: scripts/setup-signing-key.sh
env:
DECRYPTER: ${{ secrets.DECRYPTER }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: "Git config"
run: |
git config --global user.email "[email protected]"
git config --global user.name "automation-commercetools"
- name: "Perform docs release"
run: |
./mvnw clean install -DskipTests --no-transfer-progress
./mvnw javadoc:aggregate scm-publish:publish-scm -Pgh-publish-site,javadoc-jdk-8u121 --no-transfer-progress
env:
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}