Skip to content

Update to macOS 15 requirement #1

Update to macOS 15 requirement

Update to macOS 15 requirement #1

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Get version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Build app
run: |
xcodebuild -project Barik.xcodeproj \
-scheme Barik \
-configuration Release \
-derivedDataPath build \
-archivePath build/Barik.xcarchive \
archive \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO
- name: Export app
run: |
mkdir -p export
cp -R build/Barik.xcarchive/Products/Applications/Barik.app export/
- name: Create zip
run: |
cd export
zip -r ../Barik.zip Barik.app
cd ..
shasum -a 256 Barik.zip > Barik.zip.sha256
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: Barik v${{ steps.version.outputs.VERSION }}
body: |
## Barik v${{ steps.version.outputs.VERSION }}
See [CHANGELOG.md](https://github.com/ojowwalker77/barik/blob/main/CHANGELOG.md) for details.
### Installation
**Download:** Unzip and move to Applications.
**Homebrew:**
```bash
brew tap ojowwalker77/barik
brew install --cask barik
```
files: |
Barik.zip
Barik.zip.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Output SHA256
id: sha
run: |
SHA=$(cat Barik.zip.sha256 | awk '{print $1}')
echo "SHA256=$SHA" >> $GITHUB_OUTPUT
echo "SHA256: $SHA"
outputs:
sha256: ${{ steps.sha.outputs.SHA256 }}
version: ${{ steps.version.outputs.VERSION }}
update-homebrew:
needs: build
runs-on: ubuntu-latest
steps:
- name: Update Homebrew tap
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
repository: ojowwalker77/homebrew-barik
event-type: update-cask
client-payload: |
{
"version": "${{ needs.build.outputs.version }}",
"sha256": "${{ needs.build.outputs.sha256 }}"
}