Skip to content

Release Docs

Release Docs #8

Workflow file for this run

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 }}