Merge pull request #175 from usefulness/renovate/google.material #284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: After merge build | |
on: | |
push: | |
branches: | |
- master | |
- main | |
- trunk | |
- develop | |
- maine | |
- mane | |
schedule: | |
- cron: '0 3 * * 1,4' | |
jobs: | |
build: | |
env: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 20 | |
- uses: gradle/gradle-build-action@v2 | |
- run: ./gradlew currentVersion | |
- run: ./gradlew assemble | |
- name: Unwrap GPG key | |
env: | |
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }} | |
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }} | |
run: sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'" | |
- name: Publish Snapshots | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }} | |
run: ./gradlew publishAllPublicationsToGithubRepository | |
- run: ./gradlew projectCoverage | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- uses: actions/cache@v3 | |
name: Upload base (release) | |
with: | |
path: diffuse-source-file-release | |
key: diffuse-${{ github.sha }}-${{ hashFiles('**/aar/**.aar') }} | |
- run: cp screenshot-testing-core/build/outputs/aar/screenshot-testing-core-release.aar diffuse-source-file-release | |
shell: bash | |
build-sample-app: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 20 | |
- name: Assemble sample app | |
uses: gradle/gradle-build-action@v2 | |
with: | |
build-root-directory: sample | |
arguments: check |