diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6b4b78..9d0d3bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,13 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Build with Maven run: mvn -B package --file pom.xml - name: Create Release @@ -36,6 +43,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./target/*.jar + asset_path: /home/runner/work/hcfsfuse/hcfsfuse/target/hcfsfuse-*-jar-with-dependencies.jar asset_name: hcfs-fuse.jar asset_content_type: application/zip