We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 033fc42 commit 2fae9eaCopy full SHA for 2fae9ea
.github/workflows/deploy.yml
@@ -25,15 +25,17 @@ jobs:
25
steps:
26
# Checkout source code
27
- uses: actions/checkout@v2
28
+ # Cache maven .m2 directory
29
+ - uses: actions/cache@v2
30
+ with:
31
+ path: ~/.m2/repository
32
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
33
+ restore-keys: |
34
+ ${{ runner.os }}-maven-
35
# Install Java 1.8
36
- uses: actions/setup-java@v1
37
with:
38
server-id: hengyu
39
java-version: 1.8
- server-username: MAVEN_USERNAME
- server-password: MAVEN_PASSWORD
40
# Publish to Apache Maven Central
41
- run: mvn clean compile
- env:
- MAVEN_USERNAME: ${{ secrets.MAVEN_CENTER_USER_NAME }}
- MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTER_PASSWORD }}
0 commit comments