forked from barvhaim/nonap
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.37 KB
/
Copy pathrelease.yml
File metadata and controls
49 lines (40 loc) · 1.37 KB
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
41
42
43
44
45
46
47
48
49
name: Release
# Builds NoNap and attaches NoNap.dmg + NoNap.zip to a GitHub Release when you
# push a version tag like v1.0.0.
on:
push:
tags:
- "v*"
permissions:
contents: write # needed to create the release and upload assets
jobs:
release:
name: Build & publish release
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode 16 (Swift 6)
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16"
- name: Build DMG installer
run: ./Scripts/make_dmg.sh
- name: Build zip
run: ./Scripts/package_zip.sh
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
NoNap.dmg
NoNap.zip
generate_release_notes: true
body: |
## NoNap ${{ github.ref_name }}
**Recommended:** download `NoNap.dmg`, open it, and drag **NoNap** into
Applications. (`NoNap.zip` is also attached if you prefer.)
**First launch:** the build is ad-hoc signed (not notarized), so macOS
blocks it once. Open the app, then go to **System Settings → Privacy &
Security → Open Anyway**. Or run
`xattr -dr com.apple.quarantine /Applications/NoNap.app` in Terminal.
Apple Silicon (arm64).