feat(ci): trigger nightly without publish on build-electron change

This commit is contained in:
Elian Doran 2025-03-23 12:29:13 +02:00
parent 27875c4622
commit f341bb3547
No known key found for this signature in database

View File

@ -5,6 +5,9 @@ on:
- cron: "0 2 * * *" # run at 2 AM UTC - cron: "0 2 * * *" # run at 2 AM UTC
# This can be used to allow manually triggering nightlies from the web interface # This can be used to allow manually triggering nightlies from the web interface
workflow_dispatch: workflow_dispatch:
pull_request:
paths:
- .github/actions/build-electron/*
env: env:
GITHUB_UPLOAD_URL: https://uploads.github.com/repos/TriliumNext/Notes/releases/179589950/assets{?name,label} GITHUB_UPLOAD_URL: https://uploads.github.com/repos/TriliumNext/Notes/releases/179589950/assets{?name,label}
GITHUB_RELEASE_ID: 179589950 GITHUB_RELEASE_ID: 179589950
@ -56,6 +59,7 @@ jobs:
- name: Publish release - name: Publish release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: ${{ github.event_name != 'pull_request' }}
with: with:
make_latest: false make_latest: false
prerelease: true prerelease: true
@ -88,6 +92,7 @@ jobs:
- name: Publish release - name: Publish release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: ${{ github.event_name != 'pull_request' }}
with: with:
make_latest: false make_latest: false
prerelease: true prerelease: true