From fc7657840efd384ff381e750c86085d43f4ec945 Mon Sep 17 00:00:00 2001 From: TMaszko Date: Fri, 28 May 2021 17:23:21 +0200 Subject: [PATCH 1/4] added pod publishing --- .github/workflows/build_frameworks.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_frameworks.yml b/.github/workflows/build_frameworks.yml index c59a02f7..9bb8c387 100644 --- a/.github/workflows/build_frameworks.yml +++ b/.github/workflows/build_frameworks.yml @@ -48,7 +48,7 @@ jobs: path: .github/workflows/podspec.txt - name: Create *.podspec run: | - cat > RiveRuntime.podspec <<-EOF + cat > RiveRuntime.podspec <<-EOF ${{ steps.podspec.outputs.text }} EOF env: @@ -93,6 +93,15 @@ jobs: git config --local user.name ${{ github.actor }} git add . git commit -m "Update podspec repo tag:${{ github.event.release.tag_name }}" - git push + git push env: - API_TOKEN_GITHUB: ${{ secrets.RIVE_REPO_PAT }} \ No newline at end of file + API_TOKEN_GITHUB: ${{ secrets.RIVE_REPO_PAT }} + - name: Register trunk session + run: | + pod trunk register 'luigi@erive.app' 'Luigi' --description="Session no.${{ github.run_number }}" + + - name: Publish pod to the CocoaPods + uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 + env: + COCOAPODS_TRUNK_TOKEN: $(pod trunk me --verbose | grep Authorization | sed -n 's/.*Authorization: Token \([a-f0-9]*\).*/\1/p') + From b938f927a03a6079976f771dbd4ba31ed25ed68a Mon Sep 17 00:00:00 2001 From: TMaszko Date: Mon, 31 May 2021 11:36:23 +0200 Subject: [PATCH 2/4] fix: email address typo --- .github/workflows/build_frameworks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_frameworks.yml b/.github/workflows/build_frameworks.yml index 9bb8c387..61e76ebc 100644 --- a/.github/workflows/build_frameworks.yml +++ b/.github/workflows/build_frameworks.yml @@ -98,7 +98,7 @@ jobs: API_TOKEN_GITHUB: ${{ secrets.RIVE_REPO_PAT }} - name: Register trunk session run: | - pod trunk register 'luigi@erive.app' 'Luigi' --description="Session no.${{ github.run_number }}" + pod trunk register 'luigi@rive.app' 'Luigi' --description="Session no.${{ github.run_number }}" - name: Publish pod to the CocoaPods uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 From 6bbf62eb02c298548ed0882b2c15eca389b86682 Mon Sep 17 00:00:00 2001 From: Maxwell Talbot Date: Tue, 1 Jun 2021 11:14:44 +0100 Subject: [PATCH 3/4] moved pod token into secrets --- .github/workflows/build_frameworks.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build_frameworks.yml b/.github/workflows/build_frameworks.yml index 61e76ebc..15ff3e15 100644 --- a/.github/workflows/build_frameworks.yml +++ b/.github/workflows/build_frameworks.yml @@ -96,12 +96,8 @@ jobs: git push env: API_TOKEN_GITHUB: ${{ secrets.RIVE_REPO_PAT }} - - name: Register trunk session - run: | - pod trunk register 'luigi@rive.app' 'Luigi' --description="Session no.${{ github.run_number }}" - - name: Publish pod to the CocoaPods uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 env: - COCOAPODS_TRUNK_TOKEN: $(pod trunk me --verbose | grep Authorization | sed -n 's/.*Authorization: Token \([a-f0-9]*\).*/\1/p') + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} From e4a1f2a8cd09be19a66e36fb62e0423ffd9be1a8 Mon Sep 17 00:00:00 2001 From: Maxwell Talbot Date: Tue, 1 Jun 2021 11:18:37 +0100 Subject: [PATCH 4/4] fix alignment --- .github/workflows/build_frameworks.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_frameworks.yml b/.github/workflows/build_frameworks.yml index 15ff3e15..ed716851 100644 --- a/.github/workflows/build_frameworks.yml +++ b/.github/workflows/build_frameworks.yml @@ -96,8 +96,8 @@ jobs: git push env: API_TOKEN_GITHUB: ${{ secrets.RIVE_REPO_PAT }} - - name: Publish pod to the CocoaPods - uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 - env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + - name: Publish pod to the CocoaPods + uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}