Skip to content

Vertical align statusbar text with icon (#57) #69

Vertical align statusbar text with icon (#57)

Vertical align statusbar text with icon (#57) #69

Workflow file for this run

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/delete-tag-and-release@v0.2.1
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