Build and Release #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
build: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build App | |
run: | | |
xcodebuild build -project 'OpinionatedTimer.xcodeproj' -scheme 'OpinionatedTimer' -destination 'generic/platform=macOS' -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | |
xcodebuild -scheme 'OpinionatedTimer' -configuration Release archive -archivePath OT.xcarchive | |
xcodebuild -exportArchive -exportPath . -archivePath OT.xcarchive/ -exportOptionsPlist OpinionatedTimer/exportOptions.plist | |
- name: Compress App | |
run: zip -r OpinionatedTimer.zip OpinionatedTimer.app | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1.0.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./OpinionatedTimer.zip | |
asset_name: OpinionatedTimer.zip | |
asset_content_type: application/zip |