-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (42 loc) · 1.34 KB
/
build-and-deploy.yml
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
43
44
name: Build and Deploy
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
secrets: inherit
test:
name: Test
uses: ./.github/workflows/test.yml
secrets: inherit
deploy-artifacts:
name: Deploy Artifacts
needs: [ build, test ]
uses: ./.github/workflows/deploy-artifacts.yml
with:
should-deploy-artifacts: ${{ needs.build.outputs.should-deploy-artifacts }}
secrets: inherit
publish-plugins:
name: Publish Plugins
needs: [ deploy-artifacts ]
uses: ./.github/workflows/publish-plugins.yml
with:
should-publish-plugins: ${{ needs.deploy-artifacts.outputs.artifacts-deployed }}
project-version: ${{ needs.deploy-artifacts.outputs.project-version }}
secrets: inherit
send-notification:
name: Send Notification
needs: [ deploy-artifacts ]
runs-on: ubuntu-latest
steps:
- name: Send Notification
uses: spring-io/spring-security-release-tools/.github/actions/send-notification@v1
if: ${{ failure() || cancelled() }}
with:
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
status: ${{ job.status }}
build-scan-url: ${{ steps.build-and-publish.outputs.build-scan-url }}
run-name: ${{ format('{0} | Linux | Java 17', github.ref_name) }}