mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
ci使用pods缓存
This commit is contained in:
parent
06d0caa52f
commit
14c7be23b5
9
.github/workflows/testflight.yaml
vendored
9
.github/workflows/testflight.yaml
vendored
@ -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
|
||||
|
||||
9
.github/workflows/tests.yaml
vendored
9
.github/workflows/tests.yaml
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user