From 9e014826856dc98e9d4022ebb39c4ae389def040 Mon Sep 17 00:00:00 2001 From: benbaker76 Date: Sun, 23 Jun 2024 16:28:23 -0700 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ff342ec..6dfd7e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 }}"