-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (83 loc) · 3.93 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Manual release dispatch workflow
on:
workflow_dispatch:
inputs:
alfresco-deployment-service-version:
description: 'Version for alfresco-deployment-service'
required: true
default: '7.19.0-alpha.190'
alfresco-modeling-service-version:
description: 'Version for alfresco-modeling-service'
required: true
default: '7.19.0-alpha.190'
alfresco-process-version:
description: 'Version for alfresco-process'
required: true
default: '7.19.0-alpha.102'
activiti-cloud-version:
description: 'Version for activiti-cloud'
required: true
default: '8.7.0-alpha.43'
tag-name:
description: 'Tag name for the release'
required: true
default: 'v7.19.0-alpha.93'
env:
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_CLI_OPTS: >-
--settings settings.xml
-V --no-transfer-progress -Dspring.main.banner-mode=off -Ddoclint=none
-Denvironment.host=${{ vars.ENVIRONMENT_HOST }}
-Denvironment.apa.host=${{ vars.ENVIRONMENT_APA_HOST }}
-Denvironment.application.name=${{ vars.ENVIRONMENT_APP }}
jobs:
pre-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Check dependabot build
uses: Activiti/Activiti/.github/actions/check-ext-build@7700f0283a9ff5181581a350d2520e55c61c1c60 # 8.6.0
- name: pre-commit
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
with:
skip_checkout: true
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@40ba2d51b6b6d8695f2b6bd74e785172d4f8d00f # v3.0.14
set-versions-and-create-release-branch:
runs-on: ubuntu-latest
needs:
- pre-checks
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
ref: develop
- name: Create new release branch
run: |
git checkout -b release/${{ github.event.inputs.tag-name }}
git branch -M release/${{ github.event.inputs.tag-name }}
- name: Update versions in pom.xml
run: |
mvn versions:set-property -Dproperty=alfresco-deployment-service.version -DnewVersion=${{ github.event.inputs.alfresco-deployment-service-version }} -DgenerateBackupPoms=false
mvn versions:set-property -Dproperty=alfresco-modeling-service.version -DnewVersion=${{ github.event.inputs.alfresco-modeling-service-version }} -DgenerateBackupPoms=false
mvn versions:set-property -Dproperty=alfresco-process.version -DnewVersion=${{ github.event.inputs.alfresco-process-version }} -DgenerateBackupPoms=false
mvn versions:set-property -Dproperty=activiti-cloud.version -DnewVersion=${{ github.event.inputs.activiti-cloud-version }} -DgenerateBackupPoms=false
mvn versions:set -DnewVersion=${{ github.event.inputs.tag-name }} -DgenerateBackupPoms=false
- name: Commit Changes
env:
VERSION: ${{ github.event.inputs.tag-name }}
uses: Alfresco/alfresco-build-tools/.github/actions/git-commit-changes@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
with:
username: ${{ secrets.BOT_GITHUB_USERNAME }}
commit-message: "Release ${VERSION}"
add-options: "."
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push -u origin release/${{ github.event.inputs.tag-name }}
- name: Create Pull Request
run: |
gh pr create --title "Release ${{ github.event.inputs.tag-name }}" --body "This is an automated pull request to release version ${{ github.event.inputs.tag-name }}." --head release/${{ github.event.inputs.tag-name }} --base develop
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}