Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
name: Deploy main
name: Deploy to Maven Central from main
on:
push:
branches:
- main
workflow_dispatch:
inputs:
version-increment:
description: 'Version-increment'
required: true
type: choice
options:
- patch
- minor
- major

jobs:
deploy-main-gradle:
uses: entur/gha-maven-central/.github/workflows/gradle-publish.yml@main
deploy-tag-gradle:
uses: entur/gha-maven-central/.github/workflows/gradle-publish.yml@v1
secrets: inherit
permissions:
contents: write
issues: write
with:
next_version: patch
next_version: ${{ inputs.version-increment }}
version_strategy: tag
version_tag_prefix: v

post-failure-to-slack:
needs: deploy-main-gradle
permissions:
contents: read
needs: deploy-tag-gradle
if: failure()
uses: entur/gha-slack/.github/workflows/post.yml@v3
with:
Expand All @@ -28,12 +35,14 @@ jobs:
secrets: inherit

post-success-to-slack:
needs: deploy-main-gradle
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
secrets: inherit


33 changes: 33 additions & 0 deletions .github/workflows/main-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Verify main
on:
push:
branches:
- main

jobs:
verify-main-gradle:
permissions:
contents: read
uses: entur/abt-gha-public/.github/workflows/gradle-open-source-verify.yml@v1.26

post-failure-to-slack:
permissions:
contents: read
needs: verify-main-gradle
if: failure()
uses: entur/gha-slack/.github/workflows/post.yml@v3
with:
channel_id: ${{ vars.CHANNEL_ID }}
message: "🔴 Gradle build 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: verify-main-gradle
if: success()
uses: entur/gha-slack/.github/workflows/post.yml@v3
with:
channel_id: ${{ vars.CHANNEL_ID}}
message: "🟢 Gradle build success for ${{ github.repository }}\n ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
secrets: inherit