-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (63 loc) · 2.16 KB
/
Copy pathmacos-experimental.yml
File metadata and controls
73 lines (63 loc) · 2.16 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: macOS experimental build
on:
workflow_dispatch:
inputs:
release_tag:
description: "Release tag to create or update"
required: true
default: "v0.4.3-macos-experimental"
publish_release:
description: "Upload the macOS artifacts to GitHub Releases"
required: true
type: boolean
default: true
permissions:
contents: write
jobs:
build:
name: Build unsigned macOS universal app
runs-on: macos-14
env:
CSC_IDENTITY_AUTO_DISCOVERY: "false"
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build macOS experimental app
run: npm run dist:mac
- name: Create checksums
run: |
shasum -a 256 release/AutoLooper.*.mac.dmg release/AutoLooper.*.mac.zip > release/SHA256SUMS-mac.txt
- name: Upload workflow artifact
uses: actions/upload-artifact@v4
with:
name: AutoLooper-macOS-experimental
path: |
release/AutoLooper.*.mac.dmg
release/AutoLooper.*.mac.zip
release/SHA256SUMS-mac.txt
if-no-files-found: error
- name: Publish GitHub Release assets
if: ${{ inputs.publish_release }}
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ inputs.release_tag }}
run: |
if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
gh release upload "$RELEASE_TAG" release/AutoLooper.*.mac.dmg release/AutoLooper.*.mac.zip release/SHA256SUMS-mac.txt --clobber
else
gh release create "$RELEASE_TAG" release/AutoLooper.*.mac.dmg release/AutoLooper.*.mac.zip release/SHA256SUMS-mac.txt \
--target "$GITHUB_SHA" \
--title "AutoLooper v0.4.3-beta macOS experimental" \
--notes-file docs/macos-experimental-release-notes.md \
--prerelease
fi