Mark 3.27.0 #275
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
inputs: | |
release: | |
description: 'Release? yes/no' | |
default: 'no' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
jira-version: ["8.20.0", "9.4.0", "9.8.0", "9.11.0"] | |
env: | |
JIRA_VERSION: ${{ matrix.jira-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 8 | |
server-password: "" # avoid ```Unable to decrypt local Maven settings credentials``` | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload test reports | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-reports | |
path: build/reports/tests | |
- name: Upload diagnoses | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.jira-version }}-diagnoses | |
path: build/diagnoses | |
build-check: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- run: echo "All build jobs successful." | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
needs: build-check | |
if: github.event.inputs.release == 'yes' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get publish token | |
id: publish-token | |
uses: atlassian-labs/[email protected] | |
- name: Release | |
env: | |
atlassian_private_username: ${{ steps.publish-token.outputs.artifactoryUsername }} | |
atlassian_private_password: ${{ steps.publish-token.outputs.artifactoryApiKey }} | |
run: | | |
./gradlew release \ | |
-Prelease.customUsername=${{ github.actor }} \ | |
-Prelease.customPassword=${{ github.token }} | |
./gradlew publish |