Skip to content

Commit

Permalink
Enable build caching
Browse files Browse the repository at this point in the history
Signed-off-by: Ashcon Partovi <[email protected]>
  • Loading branch information
Electroid committed Apr 10, 2020
1 parent 7c28b21 commit fe788de
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: cache
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: format
run: mvn com.coveo:fmt-maven-plugin:check
- name: build
run: mvn -U install
run: mvn install
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: cache
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: format
run: mvn com.coveo:fmt-maven-plugin:check
- name: version
Expand All @@ -25,7 +32,7 @@ jobs:
mvn versions:set \
-DnewVersion=1.8-${GITHUB_REF#refs/heads/}-SNAPSHOT
- name: nexus
run: mvn -U deploy -s settings.xml
run: mvn deploy -s settings.xml
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
Expand Down

0 comments on commit fe788de

Please sign in to comment.