Skip to content

Commit 4529c7a

Browse files
chore(DVIZ-24): fix build workflow order
1 parent 754792b commit 4529c7a

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.github/workflows/release.yml

+24-24
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,11 @@ jobs:
2424
with:
2525
fetch-depth: '0'
2626

27-
- name: Set up JDK
28-
uses: actions/setup-java@v4
29-
with:
30-
java-version: '21'
31-
distribution: 'corretto'
32-
cache: 'maven'
33-
34-
- name: Cache Maven packages
35-
uses: actions/cache@v4
36-
with:
37-
path: |
38-
~/.m2/repository
39-
!~/.m2/repository/org/devgateway/tcdi
40-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
41-
restore-keys: |
42-
${{ runner.os }}-maven-
43-
4427
- name: Configure Git user
4528
run: |
4629
git config user.email "[email protected]"
4730
git config user.name "Timothy Mugo Gachengo"
4831
49-
- name: Build the Maven project
50-
run: |
51-
mvn package -DskipTests=true -Dcheckstyle.skip \
52-
&& mkdir -p forms/target/deps \
53-
&& cd forms/target/deps \
54-
&& jar -xf ../*.jar
55-
5632
- name: Generate Tag
5733
id: tag_version
5834
uses: mathieudutour/[email protected]
@@ -107,6 +83,30 @@ jobs:
10783
needs: build-and-push-docker-image
10884
runs-on: ubuntu-latest
10985
steps:
86+
- name: Set up JDK
87+
uses: actions/setup-java@v4
88+
with:
89+
java-version: '21'
90+
distribution: 'corretto'
91+
cache: 'maven'
92+
93+
- name: Cache Maven packages
94+
uses: actions/cache@v4
95+
with:
96+
path: |
97+
~/.m2/repository
98+
!~/.m2/repository/org/devgateway/tcdi
99+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
100+
restore-keys: |
101+
${{ runner.os }}-maven-
102+
103+
- name: Build the Maven project
104+
run: |
105+
mvn package -DskipTests=true -Dcheckstyle.skip \
106+
&& mkdir -p forms/target/deps \
107+
&& cd forms/target/deps \
108+
&& jar -xf ../*.jar
109+
110110
- name: Generate a changelog
111111
uses: orhun/git-cliff-action@v3
112112
id: changelog

0 commit comments

Comments
 (0)