Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benbaker76 authored Jun 23, 2024
1 parent 2c253bb commit 9e01482
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
JOB_TYPE: BUILD
steps:
- uses: actions/checkout@v4
- name: Extract Version
id: extract_version
run: |
VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" PinConfigurator.xcodeproj/Info.plist)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Build Debug
run: xcodebuild -jobs 1 -configuration Debug -arch x86_64 SYMROOT=$PWD/build
- name: Build Release
Expand All @@ -32,9 +37,12 @@ jobs:
name: Artifacts
path: build/*.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*.zip
tag: ${{ github.ref }}
file_glob: true
name: "${{ env.VERSION }}"
body: "Release notes for version ${{ env.VERSION }}"

0 comments on commit 9e01482

Please sign in to comment.