File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,47 @@ permissions:
9
9
contents : write
10
10
11
11
jobs :
12
+ build :
13
+ name : Build Artifact
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Set up Go
20
+ uses : actions/setup-go@v5
21
+ with :
22
+ go-version : ' 1.24'
23
+
24
+ - name : Build binary
25
+ run : |
26
+ echo "Building Grafana Dashboards, Prometheus Rules and Alerts"
27
+ make
28
+ echo "Compressing Artifacts"
29
+ zip -r kubernetes-mixin-${{ github.ref_name }}.zip dashboards_out prometheus_alerts.yaml prometheus_rules.yaml
30
+
31
+ - name : Upload artifact
32
+ uses : actions/upload-artifact@v4
33
+ with :
34
+ name : kubernetes-mixin-${{ github.ref_name }}.zip
35
+ path : ./
36
+
12
37
release :
13
38
name : Release
14
39
runs-on : ubuntu-latest
40
+ needs : build
15
41
steps :
42
+ - name : Download artifact
43
+ uses : actions/download-artifact@v4
44
+ with :
45
+ name : kubernetes-mixin-${{ github.ref_name }}.zip
46
+
16
47
- name : Create release on kubernetes-mixin
17
48
uses : softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
18
49
env :
19
50
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
51
with :
21
52
tag_name : ${{ github.ref_name }}
22
- repository : kubernetes-monitoring /kubernetes-mixin
53
+ repository : Monitoring-Projects /kubernetes-mixin
23
54
generate_release_notes : true
55
+ files : kubernetes-mixin-${{ github.ref_name }}.zip
You can’t perform that action at this time.
0 commit comments