Skip to content

Carthage now uses binary Sparkle builds to fix build breaks. Upgraded… #42

Carthage now uses binary Sparkle builds to fix build breaks. Upgraded…

Carthage now uses binary Sparkle builds to fix build breaks. Upgraded… #42

Workflow file for this run

name: "Build and deploy"
on:
push:
pull_request:
jobs:
build:
runs-on: macos-10.15
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: '0'
- name: Setup | Ruby
uses: ruby/setup-ruby@v1
- name: Setup | Install
run: |
carthage bootstrap
gem install xcpretty-travis-formatter
- name: Build
env:
SPARKLE_PRIVATE_KEY: ${{ secrets.SPARKLE_PRIVATE_KEY }}
run: |
xcodebuild -version
xcodebuild -target Package
- name: Tag release
if: "github.ref == 'refs/heads/develop'"
run: |
. Scripts/tag-beta.bash
- name: Release | Setup
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/develop'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Scripts/release-notes.rb
Scripts/release-notes.rb > build/Release/Release-notes.md
VERSION=$(/usr/libexec/PlistBuddy -c "print :CFBundleShortVersionString" "build/Release/MetaZ.app/Contents/Info.plist")
echo "VERSION=$VERSION" >> $GITHUB_ENV
RELEASE_NAME="$(echo "$VERSION" | sed -e 's/.beta-/ Beta /')"
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV
mkdir Upload
cp build/Release/MetaZ-* Upload/
ls Upload/
rm Upload/MetaZ-*.xml
mv Upload/MetaZ-*+dSYM.zip Upload/Debug.dSYM.zip
mv Upload/MetaZ-*.json Upload/Sparkle.json
rm Upload/*.dmg
- name: Pre-Release
if: github.ref == 'refs/heads/develop'
uses: softprops/action-gh-release@v1
with:
body_path: build/Release/Release-notes.md
token: ${{ secrets.SITE_TOKEN }}
files: 'Upload/*'
prerelease: true
name: ${{ env.RELEASE_NAME }}
tag_name: v${{ env.VERSION }}
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
body_path: build/Release/Release-notes.md
token: ${{ secrets.SITE_TOKEN }}
files: 'Upload/*'
name: ${{ env.RELEASE_NAME }}