forked from 4v3ngR/immich-native-macos
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.14 KB
/
create-pkg.yml
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: Immich macOS Package
on:
# Trigger the workflow on pushes and pull requests to main branches
push:
branches:
- master
tags:
- "*"
pull_request:
branches:
- master
# Optionally, manually trigger the workflow
workflow_dispatch:
jobs:
build_pkg:
name: Create Immich package for macOS
runs-on: macos-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
# Step 1: Checkout the repository
- name: Checkout Code
uses: actions/checkout@v3
# Step 2: Install Homebrew
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
# Step 3: Install dependencies
- name: Install dependencies
run: |
brew install \
node \
npm \
vips
# Step 4: Create Immich package
- name: Create Immich package
run: ./build_pkg.sh
# Step 5: Release prebuilt package
- name: Release prebuilt package
uses: softprops/action-gh-release@v2
with:
files: "./output/Unofficial Immich Installer *.pkg"