From 57b3df3724a2bda8e59af83f99c127b1503b5c37 Mon Sep 17 00:00:00 2001 From: Thomas Vidas Date: Wed, 9 Feb 2022 13:11:22 -0500 Subject: [PATCH] fix(ci): Fix tags/releases for Attach .xcframework CI action (#5423) * fix(ci): add token to ghr call in xcframework build action * fix(ci): --tags instead of -tag on xcframework github action * fix(ci): Set fetch-depth to 0 to allow for tags in xcframework action --- .github/workflows/publish-xcframework.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-xcframework.yml b/.github/workflows/publish-xcframework.yml index f1e56e163d..b8a722f85b 100644 --- a/.github/workflows/publish-xcframework.yml +++ b/.github/workflows/publish-xcframework.yml @@ -13,6 +13,7 @@ jobs: node-version: 14.x - uses: actions/checkout@v2 with: + fetch-depth: 0 ref: native-publish - name: Build Capacitor.xcframework run: carthage build --no-skip-current --use-xcframeworks @@ -30,4 +31,4 @@ jobs: zip -r Capacitor.xcframework.zip Carthage/Build rm -rf ios/CapacitorCordova/CapacitorCordova.xcframework - name: Attach ZIP to latest release - run: ghr -t ${{ secrets.GITHUB_TOKEN }} -replace $(git describe -tags --abbrev=0) Capacitor.xcframework.zip + run: ghr -t ${{ secrets.GITHUB_TOKEN }} -replace $(git describe --tags --abbrev=0) Capacitor.xcframework.zip