File tree Expand file tree Collapse file tree 3 files changed +57
-4
lines changed Expand file tree Collapse file tree 3 files changed +57
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: CI Workflow
3
3
on :
4
4
push :
5
5
branches : [ main ]
6
- paths : &paths
6
+ paths :
7
7
- ' gradle/**'
8
8
- ' **.gradle'
9
9
- ' gradle.properties'
15
15
- ' .github/workflows/ci-workflow.yml'
16
16
pull_request :
17
17
branches : [ main ]
18
- paths : *paths
18
+ paths :
19
+ - ' gradle/**'
20
+ - ' **.gradle'
21
+ - ' gradle.properties'
22
+ - ' app/**'
23
+ - ' ft/**'
24
+ - ' mocks/**'
25
+ - ' docker-compose.yml'
26
+ - ' lombok.config'
27
+ - ' .github/workflows/ci-workflow.yml'
19
28
20
29
workflow_dispatch :
21
30
inputs :
Original file line number Diff line number Diff line change @@ -100,3 +100,31 @@ jobs:
100
100
push : true
101
101
tags : ${{ steps.meta.outputs.tags }}
102
102
labels : ${{ steps.meta.outputs.labels }}
103
+
104
+ create-github-release :
105
+ if : github.ref == 'refs/heads/main'
106
+ needs : publish-docker-image
107
+ runs-on : ubuntu-latest
108
+ steps :
109
+ - name : Checkout code
110
+ uses : actions/checkout@v4
111
+
112
+ - name : Fetch tags
113
+ run : git fetch --tags
114
+
115
+ - name : Get latest tag
116
+ id : latest_tag
117
+ run : echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_ENV
118
+
119
+ - name : Log the version for release
120
+ run : echo "The latest tag is ${{ env.LATEST_TAG }}"
121
+
122
+ - name : Checkout code at tag
123
+ run : git checkout ${{ env.LATEST_TAG }}
124
+
125
+ - name : Create release
126
+ uses : elgohr/Github-Release-Action@v5
127
+ env :
128
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
129
+ with :
130
+ title : ${{ env.LATEST_TAG }}
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [ main ]
6
6
paths :
7
- - gateway-app/**
7
+ - ' gradle/**'
8
+ - ' **.gradle'
9
+ - ' gradle.properties'
10
+ - ' app/**'
11
+ - ' ft/**'
12
+ - ' mocks/**'
13
+ - ' docker-compose.yml'
14
+ - ' lombok.config'
15
+ - ' .github/workflows/ci-workflow.yml'
8
16
pull_request :
9
17
branches : [ main ]
10
18
paths :
11
- - gateway-app/**
19
+ - ' gradle/**'
20
+ - ' **.gradle'
21
+ - ' gradle.properties'
22
+ - ' app/**'
23
+ - ' ft/**'
24
+ - ' mocks/**'
25
+ - ' docker-compose.yml'
26
+ - ' lombok.config'
27
+ - ' .github/workflows/ci-workflow.yml'
12
28
13
29
jobs :
14
30
build-and-push :
You can’t perform that action at this time.
0 commit comments