-
Notifications
You must be signed in to change notification settings - Fork 1
96 lines (84 loc) · 2.5 KB
/
release.yml
File metadata and controls
96 lines (84 loc) · 2.5 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Lint & test & build & publish Docker image
on:
workflow_dispatch:
release:
types: [prereleased, released]
permissions:
contents: write
jobs:
lint-test:
name: Lint & test
uses: ./.github/workflows/lint-test.yml
build-jetbrains:
name: Build for JetBrains
needs: lint-test
uses: ./.github/workflows/build.yml
with:
platform: "jetbrains"
attach-release-jetbrains-asset:
name: Attach release JetBrains asset
needs: build-jetbrains
uses: ./.github/workflows/release-asset.yml
with:
artifact-name: ${{ needs.build-jetbrains.outputs.artifact-name }}
build-vs:
name: Build for Visual Studio
needs: lint-test
uses: ./.github/workflows/build.yml
with:
platform: "vs"
attach-release-vs-asset:
name: Attach release Visual Studio asset
needs: build-vs
uses: ./.github/workflows/release-asset.yml
with:
artifact-name: ${{ needs.build-vs.outputs.artifact-name }}
build-web:
name: Build for web
needs: lint-test
uses: ./.github/workflows/build.yml
with:
platform: "web"
attach-release-web-asset:
name: Attach release web asset
needs: build-web
uses: ./.github/workflows/release-asset.yml
with:
artifact-name: ${{ needs.build-web.outputs.artifact-name }}
build-push-docker-image:
name: Build & push Docker image
needs: [build-jetbrains, "build-vs", build-web]
uses: ./.github/workflows/docker-image.yml
secrets: inherit
with:
dist-artifact-name: ${{ needs.build-web.outputs.artifact-name }}
push: true
update-digma:
name: Update UI releases in digma
needs:
[
attach-release-jetbrains-asset,
attach-release-vs-asset,
attach-release-web-asset,
build-push-docker-image
]
runs-on: ubuntu-latest
if: github.event.release.prerelease == false
steps:
- uses: actions/checkout@v4
- name: Get version and dependencies
run: |
DEPENDENCIES=$(cat dependencies.json | jq -c '.')
echo "DEPENDENCIES=$DEPENDENCIES" >> $GITHUB_ENV
echo "RELEASE=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Dispatch event in digma
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.CONTENTS_WRITE_PAT }}
repository: digma-ai/digma
event-type: update-ui
client-payload: |-
{
"release": "${{ env.RELEASE }}",
"dependencies": ${{ env.DEPENDENCIES }}
}