I’m trying to set up an Actions workflow for a gradle project. I want to upload mavenLocal as a build artifact from the first job and download it in the second (which is a matrix). However, the
actions/upload-artifact Action can’t seem to find mavenLocal: I keep getting this warning from the upload stage:
Warning: No files were found with the provided path: ~/.m2/repository/. No artifacts will be uploaded.
I tried to test by adding a stage of
ls ~/.m2/ ls ~/.m2/repository/
But this fails with:
ls: cannot access '/github/home/.m2/': No such file or directory
Any ideas as to how to access mavenLocal from the jobs? Is it in a non-default path or something?