Maven Pre-Release #9
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow performs a Maven Pre-Release | |
# | |
name: Maven Pre-Release | |
on: | |
# Triggers the workflow on push request events but only for tag versions | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+-*' | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# The e2e-test job first verifies the release with multiple fusionauth versions | |
e2e-test: | |
uses: ./.github/workflows/e2e-test-fusionauth-matrix-android-latest.yml | |
# This job publishes the pre-release to a local directory | |
publish: | |
name: Maven Pre-Release | |
permissions: | |
# required for all workflows | |
security-events: write | |
# only required for workflows in private repositories | |
actions: read | |
contents: read | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Requires the staging_profile_id and e2e-test job | |
needs: e2e-test | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Sets up JDK as a prerequisite to run Gradle | |
- name: Setup Java | |
uses: actions/[email protected] | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout repository | |
uses: actions/[email protected] | |
# Sets up Gradle as a prerequisite to run Maven Pre-Release | |
- name: Setup Gradle | |
uses: gradle/actions/[email protected] | |
with: | |
gradle-home-cache-cleanup: true | |
# Performs a Local Maven Pre-Release | |
- name: Run Maven Local Pre-Release | |
env: | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SIGNING_KEY }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_SIGNING_PASSWORD }} | |
run: ./gradlew publishReleasePublicationToMavenLocal |