Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jan 22, 2025
1 parent c599752 commit ee8ab61
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,20 @@ jobs:
with:
distribution: 'temurin'
java-version: '11'

- name: Cache Maven packages
if: always()
uses: actions/cache@v3
with:
path: ~/.m2
key: lucee-script-runner-maven-cache
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Extract version number
id: extract-version
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "::set-output name=VERSION::$VERSION"
- name: Cache Lucee files
uses: actions/cache@v4
with:
path: ~/work/_actions/lucee/script-runner/main/lucee-download-cache
key: lucee-downloads

- name: Import GPG key
run: |
echo "$GPG_PRIVATE_KEY" | base64 --decode | gpg --batch --import
Expand Down Expand Up @@ -71,6 +60,20 @@ jobs:
java-version: '11'
distribution: 'adopt'

- name: Cache Lucee files
if: always()
uses: actions/cache@v4
with:
path: ~/work/_actions/lucee/script-runner/main/lucee-download-cache
key: lucee-downloads

- name: Cache Maven packages
if: always()
uses: actions/cache@v4
with:
path: ~/.m2
key: lucee-script-runner-maven-cache

- name: Build and Install with Maven
run: |
echo "------- Maven Install -------";
Expand Down

0 comments on commit ee8ab61

Please sign in to comment.