Added TB prefix to logging classes #77
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: main | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: macos-12 | |
steps: | |
- name: Delete old prerelease | |
if: github.ref_type == 'branch' | |
uses: dev-drprasad/[email protected] | |
with: | |
delete_release: true | |
tag_name: prerelease | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set version for tag | |
if: github.ref_type == 'tag' | |
run: echo "version=$(git describe --tags --match 'v*')" >> $GITHUB_ENV | |
- name: Set version for branch | |
if: github.ref_type == 'branch' | |
run: echo "version=$(git describe --tags)" >> $GITHUB_ENV | |
- name: Build | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer | |
run: | | |
xcodebuild archive -project TomatoBar.xcodeproj -scheme TomatoBar -configuration Release -archivePath TomatoBar.xcarchive MARKETING_VERSION=${{github.ref_name}} | |
xcodebuild archive -archivePath TomatoBar.xcarchive -exportArchive -exportOptionsPlist export_options.plist -exportPath . | |
zip -r "TomatoBar-${{env.version}}.zip" "TomatoBar.app" | |
- name: Release | |
if: github.ref_type == 'tag' | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: TomatoBar-${{env.version}}.zip | |
- name: Prerelease | |
if: github.ref_type == 'branch' | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: prerelease | |
prerelease: true | |
files: TomatoBar-${{env.version}}.zip |