Skip to content

Trigger Release (manual) #22

Trigger Release (manual)

Trigger Release (manual) #22

name: Trigger Release (manual)
on:
workflow_dispatch:
jobs:
prepare_release:
name: Prepare Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Configure Git user
run: |
git config user.email "[email protected]"
git config user.name "Context Mapper CI"
- name: Install Graphviz
run: sudo apt-get -y install graphviz
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Grant execute permission for mvnw
run: chmod +x mvnw
- name: Prepare Release
run: ./mvnw --settings ./.github/workflows/settings.xml clean release:prepare -B
env:
GH_CI_USERNAME: ${{ secrets.GH_CI_USERNAME }}
GH_CI_TOKEN: ${{ secrets.GH_CI_TOKEN }}