From 5cd50f98f975af8b61ff4a955892d5b496924b08 Mon Sep 17 00:00:00 2001 From: Damian Szczepanik Date: Sat, 16 Nov 2024 23:35:47 +0100 Subject: [PATCH] Adds release-dryrun workflow to test releasing process --- .github/workflows/jenkins-security-scan.yml | 30 +++++++++++++--- .github/workflows/release-dryrun.yml | 38 +++++++++++++++++++++ 2 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release-dryrun.yml diff --git a/.github/workflows/jenkins-security-scan.yml b/.github/workflows/jenkins-security-scan.yml index c7b41fc..8890f26 100644 --- a/.github/workflows/jenkins-security-scan.yml +++ b/.github/workflows/jenkins-security-scan.yml @@ -14,8 +14,28 @@ permissions: actions: read jobs: - security-scan: - uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2 - with: - java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate. - # java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default. + release-dryrun: + strategy: + matrix: + java: '21' + os: 'windows-latest' + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: adopt + + - run: + - | + mvn -DpushChanges=false \ + clean \ + -DpushChanges=false \ + -DreleaseVersion=0.0-trial \ + release:prepare \ + -DlocalCheckout=true \ + release:perform diff --git a/.github/workflows/release-dryrun.yml b/.github/workflows/release-dryrun.yml new file mode 100644 index 0000000..8fb33b9 --- /dev/null +++ b/.github/workflows/release-dryrun.yml @@ -0,0 +1,38 @@ +name: release-dryrun + +on: + push: + branches: + - master + pull_request: + types: + - opened + - synchronize + - reopened + +jobs: + release-dryrun: + strategy: + matrix: + java: '21' + os: 'windows-latest' + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: adopt + + - run: + - | + mvn -DpushChanges=false \ + clean \ + -DpushChanges=false \ + -DreleaseVersion=0.0-trial \ + release:prepare \ + -DlocalCheckout=true \ + release:perform