From b14d19a8ef59fa37673c347e4372bdb359d429a0 Mon Sep 17 00:00:00 2001 From: Simon Bihel Date: Fri, 1 Mar 2024 15:59:01 +0000 Subject: [PATCH] Add caching to cocoapods publish actions --- .github/workflows/cd.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 33def65..6607e93 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -23,6 +23,14 @@ jobs: needs: validation steps: - uses: actions/checkout@v4 + # Needed because pod trunk push --synchronous clones a massive repo + - name: Cocoapods Cache + uses: actions/cache@v4 + with: + path: ~/.cocoapods/repos + key: ${{ runner.os }}-cocoapods + save-always: true + - name: Publish to CocoaPod register env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}