-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4559cf6
commit baa3216
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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" | ||
|
||
|
@@ -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 |