Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Castro authored Aug 6, 2023
1 parent 9714596 commit 642f3ec
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"

Expand Down

0 comments on commit 642f3ec

Please sign in to comment.