Skip to content

Commit

Permalink
Implement release and patch workflows (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: achour94 <[email protected]>
  • Loading branch information
achour94 authored Dec 6, 2024
1 parent 217a064 commit bf37606
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- 'main'
tags:
- 'v[0-9]*'
pull_request:

jobs:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Patch

on:
workflow_dispatch:
inputs:
branchRef:
description: 'Patch branch (format: release-vX.Y.Z)'
required: true
type: string

jobs:
run-patch:
uses: powsybl/github-ci/.github/workflows/patch-backend-lib-generic.yml@859a4effdaa9c5e79684378f39778fd8d06df3c5
with:
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
branchRef: ${{ github.event.inputs.branchRef }}
secrets:
githubappPrivateKey: ${{ secrets.GRIDSUITE_ACTIONS_SECRET }}
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release

on:
workflow_dispatch:
inputs:
versionType:
description: 'Version type increment (major | minor)'
required: true
type: choice
options:
- major
- minor

jobs:
run-release:
uses: powsybl/github-ci/.github/workflows/release-backend-lib-generic.yml@859a4effdaa9c5e79684378f39778fd8d06df3c5
with:
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
versionType: ${{ github.event.inputs.versionType }}
secrets:
githubappPrivateKey: ${{ secrets.GRIDSUITE_ACTIONS_SECRET }}

0 comments on commit bf37606

Please sign in to comment.