From 414f3c7e57c7abecbbc9a5a5faa59d7d86344697 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 | 26 ++++++++++++++ .github/workflows/release-dryrun.yml | 38 +++++++++++++++++++++ 2 files changed, 64 insertions(+) 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..e12bd87 100644 --- a/.github/workflows/jenkins-security-scan.yml +++ b/.github/workflows/jenkins-security-scan.yml @@ -19,3 +19,29 @@ jobs: 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