-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 975 Bytes
/
Copy pathrelease.yml
File metadata and controls
40 lines (34 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: macos-14
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build app bundle
run: |
chmod +x build.sh
./build.sh
- name: Create DMG
run: |
DMG_NAME="HiDPI-Scaler-${{ github.ref_name }}.dmg"
# Create a temporary directory for DMG contents
mkdir -p dmg-staging
cp -r "HiDPI Scaler.app" dmg-staging/
ln -s /Applications dmg-staging/Applications
# Create DMG with drag-and-drop layout
hdiutil create -volname "HiDPI Scaler" \
-srcfolder dmg-staging \
-ov -format UDZO \
"$DMG_NAME"
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: "HiDPI-Scaler-${{ github.ref_name }}.dmg"
generate_release_notes: true