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 5cd50f9
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/jenkins-security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 5cd50f9

Please sign in to comment.