From 7a545ce83d21e4698dcac5a491f04d83458c8288 Mon Sep 17 00:00:00 2001 From: Rayanzay Date: Sat, 31 May 2025 15:14:32 +1000 Subject: [PATCH] feat(build): add conditional release creation step in workflow --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7866644b..86525672 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,6 +65,11 @@ jobs: rm release/package.json rm release/*.map + - name: Create Release (if not exists) + if: ${{ github.ref_name == 'main' }} + run: | + gh release view latest || gh release create latest --title "Latest Release" --notes "Auto-generated release" + - name: Upload Equicord Stable if: ${{ github.ref_name == 'main' }} run: |