Skip to content

Commit 25bb83c

Browse files
committed
Update main.yml
1 parent ee0f206 commit 25bb83c

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,6 @@ jobs:
7474
echo "------- Maven Install (to create a local test build) -------";
7575
mvn -B -e -f pom.xml clean install -Dgoal=install
7676
77-
- name: Upload Artifact
78-
uses: actions/upload-artifact@v4
79-
with:
80-
name: crypto-lex-${{ matrix.lucee.version }}
81-
path: target/*.lex
82-
8377
- name: Checkout Lucee
8478
uses: actions/checkout@v4
8579
with:
@@ -100,6 +94,36 @@ jobs:
10094
testAdditional: ${{ github.workspace }}/tests
10195
LUCEE_ADMIN_PASSWORD: admin
10296

97+
upload-artifact:
98+
runs-on: ubuntu-latest
99+
needs: [setup, build-and-test]
100+
if: needs.build-and-test.result == 'success'
101+
steps:
102+
- uses: actions/checkout@v4
103+
104+
- name: Set up JDK 11
105+
uses: actions/setup-java@v4
106+
with:
107+
java-version: '11'
108+
distribution: 'temurin'
109+
110+
- name: Cache Maven packages
111+
uses: actions/cache@v4
112+
with:
113+
path: ~/.m2
114+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
115+
restore-keys: |
116+
${{ runner.os }}-maven-
117+
118+
- name: Build
119+
run: mvn -B -e -f pom.xml clean package -DskipTests
120+
121+
- name: Upload Artifact
122+
uses: actions/upload-artifact@v4
123+
with:
124+
name: crypto-lex
125+
path: target/*.lex
126+
103127
deploy:
104128
runs-on: ubuntu-latest
105129
needs: [setup, build-and-test]

0 commit comments

Comments
 (0)