From 5f90591690d5c2fa350b6bc708a07c1d377c6ee9 Mon Sep 17 00:00:00 2001 From: Bobby Dilley Date: Thu, 16 Jan 2025 10:36:59 +0000 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e66bcf5..80b5757 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,8 +47,9 @@ jobs: name: build-output path: ./build - # Create a GitHub release and capture the upload URL + # Create a GitHub release and capture the upload URL (only on push events) - name: Create Release + if: github.event_name == 'push' id: create_release uses: actions/create-release@v1 env: @@ -59,8 +60,9 @@ jobs: draft: false prerelease: false - # Upload the compressed build artifact to the release + # Upload the compressed build artifact to the release (only on push events) - name: Upload Release Asset + if: github.event_name == 'push' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}