Skip to content

Build your personal knowledge base with Trilium Notes

refactor(ci): deduplicate dmg init

Elian Doran688b5317c1b3
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 0b20762dea..2baa62f0a9 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -37,9 +37,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- - name: Set up Python for appdmg to be installed
- if: ${{ matrix.os.name == 'macos' }}
- run: brew install python-setuptools
+ - name: Run the build
+ uses: ./.github/actions/build
+ with:
+ os: ${{ matrix.os.name }}
- name: Install dependencies
run: npm ci
- name: Update build info
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 2378d9f469..df885261bc 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -34,9 +34,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- - name: Set up Python for appdmg to be installed
- if: ${{ matrix.os.name == 'macos' }}
- run: brew install python-setuptools
+ - name: Run the build
+ uses: ./.github/actions/build
+ with:
+ os: ${{ matrix.os.name }}
- name: Install dependencies
run: npm ci
- name: Update build info
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8ea9382363..25e724e4a9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -34,9 +34,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- - name: Set up Python for appdmg to be installed
- if: ${{ matrix.os.name == 'macos' }}
- run: brew install python-setuptools
+ - name: Run the build
+ uses: ./.github/actions/build
+ with:
+ os: ${{ matrix.os.name }}
- name: Install dependencies
run: npm ci
- name: Update build info