Update publish_release.yml #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish_release: | |
runs-on: macos-14 # Use macOS runner for macOS/Xcode environment | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '16.0' | |
- name: Build Binaries | |
run: | | |
xcodebuild archive \ | |
-project eligibility.xcodeproj \ | |
-scheme eligibility_util \ | |
-configuration Release \ | |
-destination "generic/platform=macOS" \ | |
-archivePath "archives/eligibility_util" \ | |
SKIP_INSTALL=NO \ | |
ARCHS=x86_64 | |
xcodebuild archive \ | |
-project eligibility.xcodeproj \ | |
-scheme eligibility_util_sip \ | |
-configuration Release \ | |
-destination "generic/platform=macOS" \ | |
-archivePath "archives/eligibility_util_sip" \ | |
SKIP_INSTALL=NO \ | |
ARCHS=x86_64 | |
- name: Compute Checksum | |
id: checksum | |
run: | | |
echo "util_md5=$(md5 -q ./archives/eligibility_util.xcarchive/Products/usr/local/bin/eligibility_util)" >> $GITHUB_OUTPUT | |
echo "util_sip_md5=$(md5 -q ./archives/eligibility_util_sip.xcarchive/Products/usr/local/bin/eligibility_util_sip)" >> $GITHUB_OUTPUT | |
echo "xcode_path=$(xcrun xcode-select --print-path)" >> $GITHUB_OUTPUT | |
- name: Create Release | |
id: create_release | |
uses: ncipollo/release-action@v1 | |
with: | |
body: | | |
Build Xcode version ${{ steps.checksum.outputs.xcode_path }} | |
| Name | MD5 | | |
|--------------------------------------|--------------------------------------------| | |
| eligibility_util | ${{ steps.checksum.outputs.util_md5 }} | | |
| eligibility_util_sip | ${{ steps.checksum.outputs.util_sip_md5 }} | | |
allowUpdates: true | |
artifacts: "archives/eligibility_util.xcarchive/Products/usr/local/bin/eligibility_util,archives/eligibility_util_sip.xcarchive/Products/usr/local/bin/eligibility_util_sip" | |
token: ${{ secrets.GITHUB_TOKEN }} |