Skip to content

Update peter-evans/create-or-update-comment action to v5 #714

Update peter-evans/create-or-update-comment action to v5

Update peter-evans/create-or-update-comment action to v5 #714

Workflow file for this run

name: Build project
on:
pull_request:
push:
branches:
- master
- main
- trunk
- develop
- maine
- mane
schedule:
- cron: '0 3 * * 1,4'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 24
- uses: gradle/actions/setup-gradle@v4
- uses: gradle/actions/wrapper-validation@v4
- run: ./gradlew projectCodestyle
- run: ./gradlew assembleRelease check --scan
- run: ./gradlew publishToMavenLocal
- run: git diff --exit-code
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: lint-results
path: '${{ github.workspace }}/**/build/**/reports/lint-results-*.html'
- name: Publish
if: github.repository == 'usefulness/lazythreetenbp' && github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }}
run: ./gradlew publishAllPublicationsToGithubRepository --no-configuration-cache
- uses: actions/cache@v4
if: github.event_name != 'pull_request'
name: Upload base (release)
with:
path: diffuse-source-file-release
key: diffuse-${{ github.sha }}-${{ hashFiles('**/aar/**.aar') }}
- run: cp lazythreetenbp/build/outputs/aar/lazythreetenbp-release.aar diffuse-source-file-release
if: github.event_name != 'pull_request'
shell: bash