|
|
@@ -21,6 +21,29 @@ on:
|
|
|
default: 'https://github.com/firebase/SpecsStaging.git'
|
|
|
|
|
|
jobs:
|
|
|
+ package-release:
|
|
|
+ # Don't run on private repo.
|
|
|
+ if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
+ runs-on: macOS-latest
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Xcode 12.2
|
|
|
+ run: sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer
|
|
|
+ - name: Setup Bundler
|
|
|
+ run: ./scripts/setup_bundler.sh
|
|
|
+ - name: ZipBuildingTest
|
|
|
+ run: |
|
|
|
+ mkdir -p release_zip_dir
|
|
|
+ sh -x scripts/build_zip.sh release_zip_dir \
|
|
|
+ "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git' }}"
|
|
|
+ - uses: actions/upload-artifact@v1
|
|
|
+ with:
|
|
|
+ name: Firebase-release-zip-zip
|
|
|
+ # Zip the entire output directory since the builder adds subdirectories we don't know the
|
|
|
+ # name of.
|
|
|
+ path: release_zip_dir
|
|
|
+
|
|
|
+
|
|
|
build:
|
|
|
# Don't run on private repo unless it is a PR.
|
|
|
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
|
|
|
@@ -34,7 +57,7 @@ jobs:
|
|
|
cd ReleaseTooling
|
|
|
swift build -v
|
|
|
|
|
|
- package:
|
|
|
+ package-head:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
needs: build
|
|
|
@@ -48,7 +71,9 @@ jobs:
|
|
|
- name: ZipBuildingTest
|
|
|
run: |
|
|
|
mkdir -p zip_output_dir
|
|
|
- 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' }}"
|
|
|
+ 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' }}" \
|
|
|
+ build-head
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
with:
|
|
|
name: Firebase-actions-dir
|
|
|
@@ -59,7 +84,7 @@ jobs:
|
|
|
quickstart_framework_abtesting:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
@@ -103,7 +128,7 @@ jobs:
|
|
|
quickstart_framework_auth:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
@@ -147,7 +172,7 @@ jobs:
|
|
|
quickstart_framework_config:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
@@ -188,7 +213,7 @@ jobs:
|
|
|
quickstart_framework_crashlytics:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
@@ -241,7 +266,7 @@ jobs:
|
|
|
quickstart_framework_database:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
@@ -286,7 +311,7 @@ jobs:
|
|
|
quickstart_framework_dynamiclinks:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
@@ -336,7 +361,7 @@ jobs:
|
|
|
quickstart_framework_firestore:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
@@ -379,7 +404,7 @@ jobs:
|
|
|
quickstart_framework_inappmessaging:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
@@ -425,7 +450,7 @@ jobs:
|
|
|
quickstart_framework_messaging:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
@@ -470,7 +495,7 @@ jobs:
|
|
|
quickstart_framework_storage:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
|
|
|
- needs: package
|
|
|
+ needs: package-head
|
|
|
env:
|
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|