Skip to content

Commit 879f994

Browse files
committed
Add deploy legacy workflow
1 parent 2f232a0 commit 879f994

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy legacy branch to Maven Central
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version-increment:
6+
description: 'Version-increment'
7+
required: true
8+
type: choice
9+
options:
10+
- patch
11+
- minor
12+
13+
jobs:
14+
deploy-maven:
15+
uses: entur/gha-maven-central/.github/workflows/maven-publish.yml@main
16+
secrets: inherit
17+
with:
18+
next_version: ${{ inputs.version-increment }}
19+
version_strategy: tag
20+
version_tag_prefix: legacy-v
21+
java_version: 25
22+
23+
post-failure-to-slack:
24+
needs: deploy-maven
25+
if: failure()
26+
uses: entur/gha-slack/.github/workflows/post.yml@v2
27+
with:
28+
channel_id: ${{ vars.CHANNEL_ID }}
29+
message: "🔴 Maven artifact deploy failed for ${{ github.repository }}\n ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
30+
secrets: inherit
31+
32+
post-success-to-slack:
33+
needs: deploy-maven
34+
if: success()
35+
uses: entur/gha-slack/.github/workflows/post.yml@v2
36+
with:
37+
channel_id: ${{ vars.CHANNEL_ID}}
38+
message: "🟢 Maven artifact deploy success for ${{ github.repository }}\n ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
39+
secrets: inherit
40+
41+

0 commit comments

Comments
 (0)