Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions .github/workflows/create-releases-buildtools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Create release (build tools)

on:
workflow_dispatch:
inputs:
product:
description: Which product to make a release of ?
required: true
type: choice
options:
- app-distribution
- crashlytics
- performance

env:
ARTIFACTS: ${{ github.workspace }}/build/artifacts

jobs:
make-app-distribution-release:
runs-on: ubuntu-latest
if: inputs.product == 'app-distribution'
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Make release for Firebase App Distribution
run: |
./gradlew \
-Dorg.gradle.project.buildDir=${ARTIFACTS} \
-Dmaven.repo.local=${ARTIFACTS} \
:firebase-appdistribution-gradle:publishToMavenLocal
cd ${ARTIFACTS}
zip -r m2repository.zip com
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: artifacts
path: ${{ env.ARTIFACTS }}

make-crashlytics-release:
Comment on lines +20 to +44

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-latest
if: inputs.product == 'crashlytics'
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Make release for Firebase Crashlytics
run: |
./gradlew \
-Dorg.gradle.project.buildDir=${ARTIFACTS} \
-Dmaven.repo.local=${ARTIFACTS} \
:firebase-crashlytics-buildtools:publishToMavenLocal
./gradlew \
-Dorg.gradle.project.buildDir=${ARTIFACTS} \
-Dmaven.repo.local=${ARTIFACTS} \
:firebase-crashlytics-gradle:publishToMavenLocal
cd ${ARTIFACTS}
zip -r m2repository.zip com
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: artifacts
path: ${{ env.ARTIFACTS }}

make-performance-release:
Comment on lines +45 to +73

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-latest
if: inputs.product == 'performance'
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Make release for Firebase Performance
run: |
./gradlew \
-Dorg.gradle.project.buildDir=${ARTIFACTS} \
-Dmaven.repo.local=${ARTIFACTS} \
:firebase-perf-gradle:publishToMavenLocal
cd ${ARTIFACTS}
zip -r m2repository.zip com
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: artifacts
path: ${{ env.ARTIFACTS }}
Comment on lines +74 to +96

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
25 changes: 25 additions & 0 deletions .github/workflows/perf-gradle-compatibility-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Perf Gradle Compatibility Tests

on:
schedule:
- cron: '0 6 * * *' # Run daily at 6 AM
workflow_dispatch: # Allow manual triggering

jobs:
performance-plugin:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Run tests
id: tests
run: |
./gradlew \
:firebase-perf-gradle:test --tests \
"com.google.firebase.perf.plugin.transform.InstrumentationApiCompatTest.gradleBuildRunsInstrumentationForAllVariants_latestGradleAndAgp"
Comment on lines +10 to +25

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Loading