From 642f3ecc0433785232d8d2a56d086ccf99611cd8 Mon Sep 17 00:00:00 2001 From: Adrian Castro Date: Sun, 6 Aug 2023 16:24:04 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d18d07..4b919a1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,16 +50,19 @@ jobs: NEW_PATCH=$((PATCH_VERSION + 1)) NEW_VERSION="$MAJOR_VERSION.$MINOR_VERSION.$NEW_PATCH" sed -i '' "s/VERSION = $CURRENT_VERSION/VERSION = $NEW_VERSION/" ishare/Config.xcconfig - - # - name: Commit & Push changes - # uses: actions-js/push@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # message: 'Bump bundle version [skip ci]' - name: Build macOS app run: xcodebuild archive -scheme "ishare" -configuration "Release" -archivePath "build/ishare.xcarchive" -destination "platform=macOS" + - name: Commit & Push changes + uses: EndBug/add-and-commit@v9 + with: + add: 'ishare/Config.xcconfig' + default_author: github_actions + fetch: false + message: 'Bump version [skip ci]' + push: true + - name: Export .app from .xcarchive run: cp -R "build/ishare.xcarchive/Products/Applications/ishare.app" "build/"