Skip to content

Commit

Permalink
Add condition each step on the alpha release workflow :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidenori MATSUKI authored and Hidenori MATSUKI committed Aug 17, 2019
1 parent 94010cf commit 6c70859
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/macos-alpha-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,28 @@ jobs:
- uses: actions/checkout@master
- name: Set version for alpha release
run: /usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${GITHUB_REF#refs/tags/v}" "Activity Logger/Activity Logger/Info.plist"
if: contains(github.ref, 'refs/tags/v')
- name: Build the App
run: cd 'Activity Logger/' && xcodebuild -target 'Activity Logger' -scheme 'Activity Logger' -configuration Release -archivePath build/activity-logger clean archive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
if: contains(github.ref, 'refs/tags/v')
- name: Export the App
run: cd 'Activity Logger/' && xcodebuild -exportArchive -exportOptionsPlist export-options.plist -archivePath build/activity-logger.xcarchive -exportPath archive/
if: contains(github.ref, 'refs/tags/v')
- name: Create tmp DMG image
run: hdiutil create /tmp/tmp.dmg -ov -volname "Activity Logger" -fs HFS+ -srcfolder 'Activity Logger/archive'
if: contains(github.ref, 'refs/tags/v')
- name: Create fixed DMG image
run: hdiutil convert /tmp/tmp.dmg -format UDZO -o "Activity Logger.dmg"
if: contains(github.ref, 'refs/tags/v')
- name: Install the hub command
run: curl -L -o /tmp/hub.tgz https://github.com/github/hub/releases/download/v2.12.3/hub-darwin-amd64-2.12.3.tgz
if: contains(github.ref, 'refs/tags/v')
- name: Extract the hub command
run: tar xf /tmp/hub.tgz
if: contains(github.ref, 'refs/tags/v')
- name: Create a new release via hub command
run: hub-*/bin/hub release create -a "Activity Logger.dmg" -m 'Alpha Release (macOS)' ${GITHUB_REF#refs/*/}
env:
GITHUB_USER: mazgi
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: contains(github.ref, 'refs/tags/v')

0 comments on commit 6c70859

Please sign in to comment.