Skip to content

Commit

Permalink
added Carthage step to release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
3a4oT committed Nov 17, 2020
1 parent 3585718 commit 721e5b7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ 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
run: carthage build --no-skip-current && carthage archive
- name: Create Release Branch
env:
GITHUB_CHANGELOG_API_KEY: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -37,3 +42,14 @@ 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: PINCache
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

0 comments on commit 721e5b7

Please sign in to comment.