|
21 | 21 | default: 'https://github.com/firebase/SpecsStaging.git'
|
22 | 22 |
|
23 | 23 | jobs:
|
| 24 | + package-release: |
| 25 | + # Don't run on private repo. |
| 26 | + if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch' |
| 27 | + runs-on: macOS-latest |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v2 |
| 30 | + - name: Xcode 12.2 |
| 31 | + run: sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer |
| 32 | + - name: Setup Bundler |
| 33 | + run: ./scripts/setup_bundler.sh |
| 34 | + - name: ZipBuildingTest |
| 35 | + run: | |
| 36 | + mkdir -p release_zip_dir |
| 37 | + sh -x scripts/build_zip.sh release_zip_dir \ |
| 38 | + "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git' }}" |
| 39 | + - uses: actions/upload-artifact@v1 |
| 40 | + with: |
| 41 | + name: Firebase-release-zip-zip |
| 42 | + # Zip the entire output directory since the builder adds subdirectories we don't know the |
| 43 | + # name of. |
| 44 | + path: release_zip_dir |
| 45 | + |
| 46 | + |
24 | 47 | build:
|
25 | 48 | # Don't run on private repo unless it is a PR.
|
26 | 49 | if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
|
|
34 | 57 | cd ReleaseTooling
|
35 | 58 | swift build -v
|
36 | 59 |
|
37 |
| - package: |
| 60 | + package-head: |
38 | 61 | # Don't run on private repo.
|
39 | 62 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
40 | 63 | needs: build
|
|
48 | 71 | - name: ZipBuildingTest
|
49 | 72 | run: |
|
50 | 73 | mkdir -p zip_output_dir
|
51 |
| - sh -x scripts/build_zip.sh zip_output_dir "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git,https://github.com/firebase/SpecsDev.git' }}" |
| 74 | + sh -x scripts/build_zip.sh \ |
| 75 | + zip_output_dir "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git,https://github.com/firebase/SpecsDev.git' }}" \ |
| 76 | + build-head |
52 | 77 | - uses: actions/upload-artifact@v1
|
53 | 78 | with:
|
54 | 79 | name: Firebase-actions-dir
|
|
59 | 84 | quickstart_framework_abtesting:
|
60 | 85 | # Don't run on private repo.
|
61 | 86 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
62 |
| - needs: package |
| 87 | + needs: package-head |
63 | 88 | env:
|
64 | 89 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
65 | 90 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
@@ -103,7 +128,7 @@ jobs:
|
103 | 128 | quickstart_framework_auth:
|
104 | 129 | # Don't run on private repo.
|
105 | 130 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
106 |
| - needs: package |
| 131 | + needs: package-head |
107 | 132 | env:
|
108 | 133 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
109 | 134 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
@@ -147,7 +172,7 @@ jobs:
|
147 | 172 | quickstart_framework_config:
|
148 | 173 | # Don't run on private repo.
|
149 | 174 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
150 |
| - needs: package |
| 175 | + needs: package-head |
151 | 176 | env:
|
152 | 177 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
153 | 178 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
@@ -188,7 +213,7 @@ jobs:
|
188 | 213 | quickstart_framework_crashlytics:
|
189 | 214 | # Don't run on private repo.
|
190 | 215 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
191 |
| - needs: package |
| 216 | + needs: package-head |
192 | 217 | env:
|
193 | 218 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
194 | 219 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
@@ -241,7 +266,7 @@ jobs:
|
241 | 266 | quickstart_framework_database:
|
242 | 267 | # Don't run on private repo.
|
243 | 268 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
244 |
| - needs: package |
| 269 | + needs: package-head |
245 | 270 | env:
|
246 | 271 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
247 | 272 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
@@ -286,7 +311,7 @@ jobs:
|
286 | 311 | quickstart_framework_dynamiclinks:
|
287 | 312 | # Don't run on private repo.
|
288 | 313 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
289 |
| - needs: package |
| 314 | + needs: package-head |
290 | 315 | env:
|
291 | 316 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
292 | 317 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
@@ -336,7 +361,7 @@ jobs:
|
336 | 361 | quickstart_framework_firestore:
|
337 | 362 | # Don't run on private repo.
|
338 | 363 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
339 |
| - needs: package |
| 364 | + needs: package-head |
340 | 365 | env:
|
341 | 366 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
342 | 367 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
@@ -379,7 +404,7 @@ jobs:
|
379 | 404 | quickstart_framework_inappmessaging:
|
380 | 405 | # Don't run on private repo.
|
381 | 406 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
382 |
| - needs: package |
| 407 | + needs: package-head |
383 | 408 | env:
|
384 | 409 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
385 | 410 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
@@ -425,7 +450,7 @@ jobs:
|
425 | 450 | quickstart_framework_messaging:
|
426 | 451 | # Don't run on private repo.
|
427 | 452 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
428 |
| - needs: package |
| 453 | + needs: package-head |
429 | 454 | env:
|
430 | 455 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
431 | 456 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
@@ -470,7 +495,7 @@ jobs:
|
470 | 495 | quickstart_framework_storage:
|
471 | 496 | # Don't run on private repo.
|
472 | 497 | if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
473 |
| - needs: package |
| 498 | + needs: package-head |
474 | 499 | env:
|
475 | 500 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
476 | 501 | signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
0 commit comments