From 4d63a43e160c358f11940d0c18b9aa60a99416c4 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 28 May 2021 00:43:37 -0400 Subject: [PATCH 1/9] Update gson dep. --- google-services-plugin/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-services-plugin/build.gradle b/google-services-plugin/build.gradle index 3de4ebc9..a5fb7e66 100644 --- a/google-services-plugin/build.gradle +++ b/google-services-plugin/build.gradle @@ -24,7 +24,7 @@ repositories { dependencies { implementation gradleApi() implementation 'com.google.android.gms:strict-version-matcher-plugin:1.2.2' - implementation 'com.google.code.gson:gson:2.8.5' + implementation 'com.google.code.gson:gson:2.8.6' implementation 'com.google.guava:guava:27.0.1-jre' testImplementation 'junit:junit:4.12' testImplementation 'com.google.truth:truth:0.42' From 7609437d80a0e190047cb7c46326f2c07a118c5a Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 28 May 2021 00:54:03 -0400 Subject: [PATCH 2/9] Upload generated artifacts using github actions. --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2934bb34..484da994 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,3 +36,7 @@ jobs: - name: Perform a Gradle build run: ./gradlew build working-directory: ./${{ matrix.project-dir }} + uses: actions/upload-artifact@v2 + with: + name: Package + path: build/libs From 56640f79985dacad796fdcaa2edf7e089b86a79a Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 28 May 2021 00:54:30 -0400 Subject: [PATCH 3/9] Don't actually update anything. It was just a test. --- google-services-plugin/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-services-plugin/build.gradle b/google-services-plugin/build.gradle index a5fb7e66..3de4ebc9 100644 --- a/google-services-plugin/build.gradle +++ b/google-services-plugin/build.gradle @@ -24,7 +24,7 @@ repositories { dependencies { implementation gradleApi() implementation 'com.google.android.gms:strict-version-matcher-plugin:1.2.2' - implementation 'com.google.code.gson:gson:2.8.6' + implementation 'com.google.code.gson:gson:2.8.5' implementation 'com.google.guava:guava:27.0.1-jre' testImplementation 'junit:junit:4.12' testImplementation 'com.google.truth:truth:0.42' From be3169d094d01b6569c9596b5d1c402d4ad23be1 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 28 May 2021 00:55:48 -0400 Subject: [PATCH 4/9] Uses is a different step. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 484da994..459fc7e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: - name: Perform a Gradle build run: ./gradlew build working-directory: ./${{ matrix.project-dir }} - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v2 with: name: Package path: build/libs From 0160892c55bd4e7acdaf8fb4381b7e8bb8414114 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 28 May 2021 01:02:58 -0400 Subject: [PATCH 5/9] Add retention limit and working-directory --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 459fc7e5..b608f336 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,10 @@ jobs: - name: Perform a Gradle build run: ./gradlew build working-directory: ./${{ matrix.project-dir }} - - uses: actions/upload-artifact@v2 + - name: Upload generated artifacts + uses: actions/upload-artifact@v2 with: - name: Package + name: Plugin Artifact path: build/libs + retention-days: 5 + working-directory: ./${{ matrix.project-dir }} From a81815ea75a218b8bc77333b3a67d8978fec7918 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 28 May 2021 01:09:26 -0400 Subject: [PATCH 6/9] Second attempt at setting working directory. --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b608f336..dcb662c8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,6 +40,5 @@ jobs: uses: actions/upload-artifact@v2 with: name: Plugin Artifact - path: build/libs + path: ./${{ matrix.project-dir }}/build/libs retention-days: 5 - working-directory: ./${{ matrix.project-dir }} From 58bba46a445cd12ffbc60810941f14719eb20863 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 28 May 2021 01:15:55 -0400 Subject: [PATCH 7/9] Testing names. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dcb662c8..05b8a462 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,6 +39,6 @@ jobs: - name: Upload generated artifacts uses: actions/upload-artifact@v2 with: - name: Plugin Artifact + name: ${{ matrix.project-dir }} path: ./${{ matrix.project-dir }}/build/libs retention-days: 5 From 99698a180362e6a27f895b8372d4e80f5ea9f62e Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 28 May 2021 01:25:59 -0400 Subject: [PATCH 8/9] Separate workflow for generating releaseble artifacts. --- .github/workflows/generate_release_rcs.yml | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/generate_release_rcs.yml diff --git a/.github/workflows/generate_release_rcs.yml b/.github/workflows/generate_release_rcs.yml new file mode 100644 index 00000000..401762f8 --- /dev/null +++ b/.github/workflows/generate_release_rcs.yml @@ -0,0 +1,43 @@ +# Perform a Gradle `build` which includes `assemble`, `check`, `test` +# of the projects, and uploads the generated artifacts. + +name: Generate releaseble artifacts + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Runs this job in parallel for each sub-project + strategy: + matrix: + project-dir: + - strict-version-matcher-plugin + - google-services-plugin + - oss-licenses-plugin + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + # Runs a build which includes `check` and `test` tasks + - name: Perform a Gradle build + run: ./gradlew build + working-directory: ./${{ matrix.project-dir }} + - name: Upload generated artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.project-dir }} + path: ./${{ matrix.project-dir }}/build/libs + retention-days: 5 From fbfb4cf39fefc8916100bd43372fc15f72f4c1f9 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 28 May 2021 01:27:04 -0400 Subject: [PATCH 9/9] Revert changes made to main flow. --- .github/workflows/main.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 05b8a462..2934bb34 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,9 +36,3 @@ jobs: - name: Perform a Gradle build run: ./gradlew build working-directory: ./${{ matrix.project-dir }} - - name: Upload generated artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ matrix.project-dir }} - path: ./${{ matrix.project-dir }}/build/libs - retention-days: 5