Skip to content

Commit

Permalink
Adds release-dryrun workflow to test releasing process
Browse files Browse the repository at this point in the history
  • Loading branch information
damianszczepanik committed Nov 16, 2024
1 parent ef867f0 commit 414f3c7
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/jenkins-security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
38 changes: 38 additions & 0 deletions .github/workflows/release-dryrun.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 414f3c7

Please sign in to comment.