From a9c5bf0c8405c2cc2e4ce31322ab2a04e0662ccb Mon Sep 17 00:00:00 2001 From: 3a4oT Date: Tue, 17 Nov 2020 18:14:56 +0200 Subject: [PATCH 1/2] added Carthage step to release pipeline --- .github/workflows/publish_release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 6589c0d..9236399 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -13,6 +13,10 @@ jobs: # Make sure we can lint before creating the release. - name: Cocoapods lint run: make cocoapods + # Make sure we can build with Carthage before the release + - name: Build and archive framework for Carthage users + env: + DEVELOPER_DIR: /Applications/Xcode_11.7.app/Contents/Developer - name: Create Release Commit env: GITHUB_CHANGELOG_API_KEY: ${{ secrets.GITHUB_TOKEN }} @@ -37,3 +41,15 @@ jobs: env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} run: pod trunk push + - name: Upload binary framework to release asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FRAMEWORK_NAME: PINOperation + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./${{ env.FRAMEWORK_NAME }}.framework.zip + asset_name: ${{ env.FRAMEWORK_NAME }}.framework.zip + asset_content_type: application/zip + From 03d92150c888a697ae9e7e1d2b46fa5102f9bd7c Mon Sep 17 00:00:00 2001 From: 3a4oT Date: Tue, 17 Nov 2020 18:19:23 +0200 Subject: [PATCH 2/2] added run step --- .github/workflows/publish_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 9236399..eb89daa 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -17,6 +17,7 @@ jobs: - name: Build and archive framework for Carthage users env: DEVELOPER_DIR: /Applications/Xcode_11.7.app/Contents/Developer + run: carthage build --no-skip-current && carthage archive - name: Create Release Commit env: GITHUB_CHANGELOG_API_KEY: ${{ secrets.GITHUB_TOKEN }}