From 6f17ab65d3218153477618aa86ef2ab161e3a96e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= <100566912+NohamR@users.noreply.github.com> Date: Fri, 10 Jul 2026 17:25:42 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93a4f93..436825e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,4 +22,23 @@ jobs: uses: actions/upload-artifact@v4 with: name: MasterPDFEditor.dylib - path: MasterPDFEditor.dylib \ No newline at end of file + path: MasterPDFEditor.dylib + + release: + if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' + needs: build + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/download-artifact@v4 + with: + name: MasterPDFEditor.dylib + + - uses: softprops/action-gh-release@v2 + with: + tag_name: build-${{ github.run_number }} + name: Build #${{ github.run_number }} + draft: true + files: MasterPDFEditor.dylib + generate_release_notes: false \ No newline at end of file