Skip to content

Commit

Permalink
AAE-26208 Manual release (#2328)
Browse files Browse the repository at this point in the history
AAE-26208 Manual release
  • Loading branch information
wojciech-piotrowiak authored Oct 2, 2024
1 parent 7460ae4 commit 590114d
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Dispatch Workflow

on:
workflow_dispatch:
inputs:
alfresco-deployment-service-version:
description: 'Version for alfresco-deployment-service'
required: true
default: '7.19.0-alpha.179'
alfresco-modeling-service-version:
description: 'Version for alfresco-modeling-service'
required: true
default: '7.19.0-alpha.179'
alfresco-process-version:
description: 'Version for alfresco-process'
required: true
default: '7.19.0-alpha.93'
activiti-cloud-version:
description: 'Version for activiti-cloud'
required: true
default: '8.7.0-alpha.37'
tag-name:
description: 'Tag name for the release'
required: true
default: 'v7.19.0-alpha.93'

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up JDK 21
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
with:
java-version: '21'
distribution: 'temurin'

- name: Update versions in pom.xml
run: |
mvn versions:set-property -Dproperty=alfresco-deployment-service.version -DnewVersion=${{ github.event.inputs.alfresco-deployment-service-version }}
mvn versions:set-property -Dproperty=alfresco-modeling-service.version -DnewVersion=${{ github.event.inputs.alfresco-modeling-service-version }}
mvn versions:set-property -Dproperty=alfresco-process.version -DnewVersion=${{ github.event.inputs.alfresco-process-version }}
mvn versions:set-property -Dproperty=activiti-cloud.version -DnewVersion=${{ github.event.inputs.activiti-cloud-version }}
mvn versions:set -DnewVersion=${{ github.event.inputs.tag-name }}
- name: Build and verify code
run: mvn clean verify

- name: Commit Changes
uses: Alfresco/alfresco-build-tools/.github/actions/git-commit-changes@9d00215f539f669b41c7fabf7b88ccc8f316926c # v6.0.1
with:
username: ${{ secrets.BOT_GITHUB_USERNAME }}
commit-message: "Release ${VERSION}"
add-options: "."

- name: Create GitHub tag
run: |
git tag ${{ github.event.inputs.tag-name }}
git push origin ${{ github.event.inputs.tag-name }}
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
VERSION: ${{ github.event.inputs.tag-name }}
run: |
gh release create ${VERSION} --title ${VERSION} --notes "Release ${VERSION}" --target ${VERSION}

0 comments on commit 590114d

Please sign in to comment.