File tree 2 files changed +27
-6
lines changed
clients/java/.github/workflows 2 files changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,8 @@ jobs:
191
191
git config --global user.name "Phrase"
192
192
git add .
193
193
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}"
194
- git push origin master
194
+ git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true
195
+ git push --tags origin master
195
196
else
196
197
echo " No changes, skipping."
197
198
fi
@@ -220,7 +221,8 @@ jobs:
220
221
git config --global user.name "Phrase"
221
222
git add .
222
223
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}"
223
- git push origin master
224
+ git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true
225
+ git push --tags origin master
224
226
else
225
227
echo " No changes, skipping."
226
228
fi
Original file line number Diff line number Diff line change 6
6
- ' *'
7
7
8
8
jobs :
9
+ build :
10
+ name : build
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ java : [ '8' ]
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - name : Set up JDK
18
+ uses : actions/setup-java@v2
19
+ with :
20
+ java-version : ${{ matrix.java }}
21
+ distribution : ' temurin'
22
+ cache : maven
23
+ - name : Build with Maven
24
+ run : mvn -B package --no-transfer-progress --file pom.xml
25
+
9
26
release :
10
27
runs-on : ubuntu-latest
28
+ needs : build
11
29
steps :
12
30
-
13
31
name : Checkout
14
- uses : actions/checkout@v2
32
+ uses : actions/checkout@v4
15
33
-
16
- name : Set up JDK 1.8
17
- uses : actions/setup-java@v1
34
+ name : Set up JDK
35
+ uses : actions/setup-java@v2
18
36
with :
19
- java-version : 1.8
37
+ distribution : ' temurin'
38
+ cache : maven
20
39
-
21
40
name : Version
22
41
id : version
You can’t perform that action at this time.
0 commit comments