ci使用pods缓存

This commit is contained in:
Fin 2021-06-24 15:22:12 +08:00
parent 06d0caa52f
commit 14c7be23b5
No known key found for this signature in database
GPG Key ID: CFB59B99D87A7B93
3 changed files with 20 additions and 1 deletions

View File

@ -27,7 +27,16 @@ jobs:
ruby-version: 2.7.2
bundler-cache: true
- uses: actions/cache@v2
id: pods-cache
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Pods
if: steps.pods-cache.outputs.cache-hit != 'true'
run: pod install
- name: Build & Distribute to Testflight

View File

@ -27,7 +27,16 @@ jobs:
ruby-version: 2.7.2
bundler-cache: true
- uses: actions/cache@v2
id: pods-cache
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Pods
if: steps.pods-cache.outputs.cache-hit != 'true'
run: pod install
- name: Run Tests

View File

@ -40,7 +40,8 @@ platform :ios do
upload_to_testflight
bark_key = ENV["BARK_KEY"]
%x( curl https://api.day.app/#{bark_key}/Bark%20has%20completed%20processing?isArchive=0 )
run_id = ENV["GITHUB_RUN_ID"]
%x( curl https://api.day.app/#{bark_key}/Bark%20has%20completed%20processing?isArchive=0&url=https%3A%2F%2Fgithub.com%2FFinb%2FBark%2Fruns%2F#{run_id} )
end