Skip to content

Commit

Permalink
Fix write permissions for CI, use install build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
chase committed Feb 11, 2024
1 parent a96907d commit 06c3801
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: write

jobs:
check_version:
uses: ./.github/workflows/check-version.yml
Expand Down Expand Up @@ -40,8 +43,9 @@ jobs:
sudo xcode-select -s $DEVELOPER_DIR
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -S . -B build
cmake --build build
cp LICENSE.txt build/awrit/Release/LICENSE
tar cJf awrit-mac-${{ matrix.arch }}.tar.xz -C build/awrit/Release awrit.app LICENSE
cmake --install build --prefix prefix
cp LICENSE.txt prefix/lib/awrit/LICENSE
tar cJf awrit-mac-${{ matrix.arch }}.tar.xz -C prefix .
shasum -a 256 awrit-mac-${{ matrix.arch }}.tar.xz > awrit-mac-${{ matrix.arch }}.tar.xz.sha256sum
- name: Create release
Expand Down

0 comments on commit 06c3801

Please sign in to comment.