From 3779000ec5835b3eead33573eb0c6ac8befaf693 Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Mon, 12 May 2025 02:15:31 +0100 Subject: [PATCH] Revert "ci: reorder steps and add env vars for Electron build #release:major" This reverts commit 9c0e898d17b66f1b5ff5fd87b3e589e9b557a164. --- .github/workflows/update-stable.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/update-stable.yml b/.github/workflows/update-stable.yml index 8488d0f5..5c0ddef3 100644 --- a/.github/workflows/update-stable.yml +++ b/.github/workflows/update-stable.yml @@ -122,10 +122,6 @@ jobs: sudo apt-get install -y rpm - name: Build Electron app - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NODE_OPTIONS: "--max_old_space_size=4096" run: | if [ "$RUNNER_OS" == "Windows" ]; then pnpm run electron:build:win @@ -135,15 +131,6 @@ jobs: pnpm run electron:build:linux fi - - name: Commit and Tag Release - run: | - git pull - git add package.json pnpm-lock.yaml changelog.md - git commit -m "chore: release version ${{ steps.bump_version.outputs.new_version }}" - git tag "v${{ steps.bump_version.outputs.new_version }}" - git push - git push --tags - - name: Upload Electron Build as Release Assets uses: softprops/action-gh-release@v2 with: @@ -158,6 +145,16 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Commit and Tag Release + - name: Commit and Tag Release + run: | + git pull + git add package.json pnpm-lock.yaml changelog.md + git commit -m "chore: release version ${{ steps.bump_version.outputs.new_version }}" + git tag "v${{ steps.bump_version.outputs.new_version }}" + git push + git push --tags + - name: Update Stable Branch run: | if ! git checkout stable 2>/dev/null; then