File tree Expand file tree Collapse file tree 3 files changed +49
-1
lines changed
Expand file tree Collapse file tree 3 files changed +49
-1
lines changed Original file line number Diff line number Diff line change 6767 files : |
6868 memory-footprint_LICENSE.txt
6969 wff-validator_LICENSE.txt
70- **/memory-footprint.jar
70+ **/memory-footprint-cli/**/memory-footprint .jar
7171 **/wff-validator.jar
7272 **/wff-xsd.zip
7373
Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+ on :
9+ pull_request :
10+ branches : ["main"]
11+
12+ permissions :
13+ contents : write
14+ packages : write
15+
16+ jobs :
17+ build_memory_footprint :
18+ runs-on : ubuntu-latest
19+ env :
20+ GITHUB_PACKAGES_URL : " https://maven.pkg.github.com/google/watchface"
21+ GITHUB_PACKAGES_USER : " x-oauth-basic"
22+ GITHUB_PACKAGES_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ steps :
24+ - name : Checkout project
25+ uses : actions/checkout@v3
26+ with :
27+ ref : ${{ inputs.release_git_sha }}
28+ - name : Set up JDK 17
29+ uses : actions/setup-java@v3
30+ with :
31+ java-version : " 17"
32+ distribution : " corretto"
33+ architecture : " x64"
34+ - name : Build memory-footprint.jar
35+ uses : gradle/actions/setup-gradle@v3
36+ with :
37+ build-root-directory : play-validations
38+ arguments : memory-footprint:publishAllPublicationsToGithubPackagesRepository
Original file line number Diff line number Diff line change @@ -30,6 +30,16 @@ publishing {
3030 }
3131 repositories {
3232 mavenLocal()
33+ if (System . getenv(" GITHUB_PACKAGES_URL" ) != null ) {
34+ maven {
35+ name = " GithubPackages"
36+ url = System . getenv(" GITHUB_PACKAGES_URL" )
37+ credentials {
38+ username = System . getenv(" GITHUB_PACKAGES_USER" )
39+ password = System . getenv(" GITHUB_PACKAGES_TOKEN" )
40+ }
41+ }
42+ }
3343 }
3444}
3545
You can’t perform that action at this time.
0 commit comments