Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[merge] 8.0.x into master #76

Merged
merged 9 commits into from
Mar 13, 2024
8 changes: 8 additions & 0 deletions .github/workflows/_reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
type: string
default: snapshots::${{ vars.SNAPSHOTS_REPOSITORY_URL }}
description: Maven alternative repository to which the project artifacts should be deployed.
upload-release-asset:
type: boolean
default: false
description: Set to `true` to upload assets to the GitHub Release.

secrets:
BONITA_CI_PAT:
Expand Down Expand Up @@ -52,3 +56,7 @@ jobs:
if: ${{ inputs.publish }}
timeout-minutes: 60
run: ./mvnw -ntp deploy -DaltDeploymentRepository=${{ inputs.alt-deployment-repository }}

- name: Upload Github release asset
if: ${{ inputs.upload-release-asset }}
run: gh release upload ${{ inputs.ref }} ./target/bonita-application-directory-${{ inputs.ref }}.bos
49 changes: 49 additions & 0 deletions .github/workflows/_reusable_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Create Tag

on:
workflow_call:
inputs:
version:
required: true
type: string
secrets:
BONITA_CI_PAT:
required: true
KSM_CONFIG:
required: true

jobs:
create_tag:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: bonitasoft/bonita-application-directory
token: ${{ secrets.BONITA_CI_PAT }}

- name: Git Setup
uses: bonitasoft/git-setup-action@v1
with:
keeper-secret-config: ${{ secrets.KSM_CONFIG }}

- name: Create Release Branch
run: git checkout -B release/${{ inputs.version }}

- name: Change Version
run: ./mvnw versions:set -DnewVersion=${{ inputs.version }}

- name: Commit and Push Tag
run: |
git commit -a -m "release(${{ inputs.version }}) create release ${{ inputs.version }}"
git tag -a ${{ inputs.version }} -m "Release ${{ inputs.version }}"
git push origin ${{ inputs.version }}:${{ inputs.version }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.BONITA_CI_PAT }}
with:
tag_name: ${{ inputs.version }}
release_name: Release ${{ inputs.version }}
2 changes: 1 addition & 1 deletion bos-distrib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${application.version}</version>
<version>${project.version}</version>

<name>${name}</name>
<description>${description}</description>
Expand Down
Loading