-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeploy-legacy-branch-manual-gradle.yml
More file actions
44 lines (39 loc) · 1.28 KB
/
deploy-legacy-branch-manual-gradle.yml
File metadata and controls
44 lines (39 loc) · 1.28 KB
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
name: Deploy to Maven Central from legacy branch
on:
workflow_dispatch:
inputs:
version-increment:
description: 'Version-increment'
required: true
type: choice
options:
- patch
- minor
jobs:
deploy-tag-gradle:
uses: entur/gha-maven-central/.github/workflows/gradle-publish.yml@v1
secrets: inherit
with:
next_version: ${{ inputs.version-increment }}
version_strategy: tag
version_tag_prefix: legacy-v
post-failure-to-slack:
permissions:
contents: read
needs: deploy-tag-gradle
if: failure()
uses: entur/gha-slack/.github/workflows/post.yml@v3
with:
channel_id: ${{ vars.CHANNEL_ID }}
message: "🔴 Gradle artifact deploy failed for ${{ github.repository }}\n ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
secrets: inherit
post-success-to-slack:
permissions:
contents: read
needs: deploy-tag-gradle
if: success()
uses: entur/gha-slack/.github/workflows/post.yml@v3
with:
channel_id: ${{ vars.CHANNEL_ID }}
message: "🟢 Gradle artifact deploy success for ${{ github.repository }}\n ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
secrets: inherit