Skip to content

Commit

Permalink
Merge pull request #34 from gsmet/cache
Browse files Browse the repository at this point in the history
Rework how caching works
  • Loading branch information
gsmet committed Jan 18, 2024
2 parents f68bfbd + f2712e7 commit 5ce58a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continue-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
uses: actions/cache/restore@v3
with:
path: ~/.m2/repository
key: m2-repository-cache-${{ steps.get-release-information.outputs.branch }}
key: m2-repository-cache-continue-${{ steps.get-release-information.outputs.branch }}
- name: Clean up cache
run: |
[ -d ~/.m2/repository/io/quarkus ] && find ~/.m2/repository/io/quarkus -name 999-SNAPSHOT -type d -exec rm -rf {} +
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
uses: actions/cache/save@v3
with:
path: ~/.m2/repository
key: m2-repository-cache-${{ steps.get-release-information.outputs.branch }}
key: m2-repository-cache-continue-${{ steps.get-release-information.outputs.branch }}
- name: Post interaction comment
uses: quarkusio/conversational-release-action@main
if: always()
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/start-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ jobs:
java-version: ${{ steps.get-release-information.outputs.jdk }}
# we do not define the server credentials here as we need to keep the github repository credentials around for executing the GitHub Action
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- name: Restore ~/.m2/repository cache
uses: actions/cache/restore@v3
with:
path: ~/.m2/repository
key: m2-repository-cache-${{ steps.get-release-information.outputs.branch }}
- name: Clean up cache
run: |
[ -d ~/.m2/repository/io/quarkus ] && find ~/.m2/repository/io/quarkus -name 999-SNAPSHOT -type d -exec rm -rf {} +
- name: Push Maven server settings
run: |
sed -i "s@</servers>@<server><id>ossrh</id><username>${{ secrets.MAVEN_SERVER_USERNAME }}</username><password>${{ secrets.MAVEN_SERVER_PASSWORD }}</password></server></servers>@" ~/.m2/settings.xml
Expand Down Expand Up @@ -101,12 +93,6 @@ jobs:
run: |
[ -d ~/.m2/repository/io/quarkus ] && [ -n "${{ steps.release.outputs.version }}" ] && find ~/.m2/repository/io/quarkus -name ${{ steps.release.outputs.version }} -type d -exec rm -rf {} +
[ -d ~/.m2/repository/io/quarkus ] && find ~/.m2/repository/io/quarkus -name 999-SNAPSHOT -type d -exec rm -rf {} +
- name: Save ~/.m2/repository cache
if: always()
uses: actions/cache/save@v3
with:
path: ~/.m2/repository
key: m2-repository-cache-${{ steps.get-release-information.outputs.branch }}
- name: Post interaction comment
uses: quarkusio/conversational-release-action@main
if: always()
Expand Down

0 comments on commit 5ce58a5

Please sign in to comment.