Skip to content

Commit 06c3801

Browse files
committed
Fix write permissions for CI, use install build for release
1 parent a96907d commit 06c3801

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release-mac.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
check_version:
1013
uses: ./.github/workflows/check-version.yml
@@ -40,8 +43,9 @@ jobs:
4043
sudo xcode-select -s $DEVELOPER_DIR
4144
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -S . -B build
4245
cmake --build build
43-
cp LICENSE.txt build/awrit/Release/LICENSE
44-
tar cJf awrit-mac-${{ matrix.arch }}.tar.xz -C build/awrit/Release awrit.app LICENSE
46+
cmake --install build --prefix prefix
47+
cp LICENSE.txt prefix/lib/awrit/LICENSE
48+
tar cJf awrit-mac-${{ matrix.arch }}.tar.xz -C prefix .
4549
shasum -a 256 awrit-mac-${{ matrix.arch }}.tar.xz > awrit-mac-${{ matrix.arch }}.tar.xz.sha256sum
4650
4751
- name: Create release

0 commit comments

Comments
 (0)