Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload binary framework on every new release for Carthage users. #302

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ 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_12.2.app/Contents/Developer
run: ./carthage.sh build --no-skip-current && ./carthage.sh archive
- name: Create XCFramework
uses: unsignedapps/[email protected]
env:
DEVELOPER_DIR: /Applications/Xcode_12.2.app/Contents/Developer
- name: Create Release Branch
env:
GITHUB_CHANGELOG_API_KEY: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -33,7 +42,19 @@ jobs:
release_name: ${{ env.RELEASE_TAG }}
body_path: RELEASE_NOTES.md
draft: false
- name: Upload artifacts
uses: csexton/release-asset-action@v2
env:
FRAMEWORK_NAME: "PINCache"
with:
files: |
${{env.FRAMEWORK_NAME}}.framework.zip
${{env.FRAMEWORK_NAME}}.zip
${{env.FRAMEWORK_NAME}}.sha256
github-token: ${{ secrets.GITHUB_TOKEN }}
release-url: ${{ steps.create_release.outputs.upload_url }}
- name: Push to Cocoapods
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: pod trunk push