From 7958a72255df22c8b2344685c6481a195fcadc25 Mon Sep 17 00:00:00 2001 From: sleepyghost-zzz Date: Sat, 29 Mar 2025 15:03:20 -0400 Subject: [PATCH 1/6] should work now and also added workflow dispatch --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 22408e8..95c0241 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,14 +4,17 @@ on: push: branches: - main # Runs only when changes are merged into main - + workflow_dispatch: + jobs: build: runs-on: windows-latest # Electron-builder requires Windows for .exe builds + + steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v3 From 119f16c94fc61e9cca6df3603d820cd6f907e1c4 Mon Sep 17 00:00:00 2001 From: sleepyghost-zzz Date: Sat, 29 Mar 2025 15:07:31 -0400 Subject: [PATCH 2/6] upgraded versions --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95c0241..2905419 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,7 @@ on: branches: - main # Runs only when changes are merged into main workflow_dispatch: - + jobs: build: runs-on: windows-latest # Electron-builder requires Windows for .exe builds @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 23 @@ -37,7 +37,7 @@ jobs: if not exist .\dist\SnakeScreen-Setup.exe exit 1 - name: Upload executable as an artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: SnakeScreen-Setup path: output/SnakeScreen-Setup.exe @@ -52,13 +52,13 @@ jobs: uses: actions/checkout@v3 - name: Download built executable - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: SnakeScreen-Setup path: output/ - name: Create GitHub Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: v1.0.${{ github.run_number }} files: output/SnakeScreen-Setup.exe From 1615a5223e89cd48f1546e7f11ccb8f39697224b Mon Sep 17 00:00:00 2001 From: sleepyghost-zzz Date: Sat, 29 Mar 2025 16:36:08 -0400 Subject: [PATCH 3/6] ci updates --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 436854b..a3aa3f9 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "scripts": { "start": "react-scripts start", - "build": "npm run app:build && npm run electron:build", + "build": "npm run app:build", "app:build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", From e56b901edda5c432c106599089c6955f82a40df2 Mon Sep 17 00:00:00 2001 From: sleepyghost-zzz Date: Sat, 29 Mar 2025 17:06:31 -0400 Subject: [PATCH 4/6] getting sigma --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2905419..861ab9a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,8 @@ name: CI +env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + on: push: branches: From 5f02d693e89d826d0f8fcb7d53fc8816abe7a01d Mon Sep 17 00:00:00 2001 From: sleepyghost-zzz Date: Sat, 29 Mar 2025 17:12:39 -0400 Subject: [PATCH 5/6] please work --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 861ab9a..1a10c91 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,8 +36,8 @@ jobs: - name: Move executable to releases folder run: | mkdir output - if exist .\dist\SnakeScreen-Setup.exe move .\dist\SnakeScreen-Setup.exe output\SnakeScreen-Setup.exe - if not exist .\dist\SnakeScreen-Setup.exe exit 1 + if (exist .\dist\SnakeScreen-Setup.exe) move .\dist\SnakeScreen-Setup.exe output\SnakeScreen-Setup.exe + if (not exist .\dist\SnakeScreen-Setup.exe) exit 1 - name: Upload executable as an artifact uses: actions/upload-artifact@v4 @@ -66,4 +66,4 @@ jobs: tag_name: v1.0.${{ github.run_number }} files: output/SnakeScreen-Setup.exe env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GH_TOKEN}} \ No newline at end of file From 4b13f0099619790bff17911c49806a08a9a9f0f5 Mon Sep 17 00:00:00 2001 From: sleepyghost-zzz Date: Sat, 29 Mar 2025 17:20:17 -0400 Subject: [PATCH 6/6] pls --- .github/workflows/main.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1a10c91..596e721 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,17 +33,11 @@ jobs: - name: Build Electron App run: npm run electron:build - - name: Move executable to releases folder - run: | - mkdir output - if (exist .\dist\SnakeScreen-Setup.exe) move .\dist\SnakeScreen-Setup.exe output\SnakeScreen-Setup.exe - if (not exist .\dist\SnakeScreen-Setup.exe) exit 1 - - name: Upload executable as an artifact uses: actions/upload-artifact@v4 with: name: SnakeScreen-Setup - path: output/SnakeScreen-Setup.exe + path: dist/SnakeScreen-Setup.exe release: needs: build @@ -58,7 +52,7 @@ jobs: uses: actions/download-artifact@v4 with: name: SnakeScreen-Setup - path: output/ + path: dist/ - name: Create GitHub Release uses: softprops/action-gh-release@v2