Skip to content

Commit

Permalink
Changes for Release Process.
Browse files Browse the repository at this point in the history
  • Loading branch information
kavitshah-gl committed Jan 14, 2023
1 parent 4559cf6 commit baa3216
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
Source_Clear_Scan:
if: ${{ startsWith(github.ref_name, 'support/') && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[no_release]') && github.event.repository.fork==false }}
runs-on: ubuntu-latest
needs: Build_and_test
steps:
# Typical Java workflow steps
- uses: actions/checkout@v3
Expand Down Expand Up @@ -78,6 +79,13 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: "Cache the Maven packages to speed up build"
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: "Run script"
run: |
cd surf
Expand All @@ -89,6 +97,7 @@ jobs:
Release:
if: ${{ startsWith(github.ref_name, 'support/') && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[no_release]') && github.event.repository.fork==false }}
runs-on: ubuntu-latest
needs: Source_Clear_Scan
steps:
# Typical Java workflow steps
- uses: actions/checkout@v3
Expand Down Expand Up @@ -116,6 +125,9 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Get branch name
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]

- name: "Use full history for release"
run: git checkout -B "$BRANCH_NAME"

Expand All @@ -125,5 +137,8 @@ jobs:
- name: "Add email to link commits to user"
run: git config user.email "${GIT_EMAIL}"

- name: "Add user name to link commits to user"
run: git config user.name "${GIT_USERNAME}"

- name: "Skip building of release commits"
run: mvn --batch-mode -q -DscmCommentPrefix="[maven-release-plugin][skip ci] " -Dusername="${GIT_USERNAME}" -Dpassword="${GIT_PASSWORD}" -DskipTests -Darguments=-DskipTests -Darguments=-Dmaven.javadoc.skip=true release:clean release:prepare release:perform

0 comments on commit baa3216

Please sign in to comment.