From ae75bdbc853afaca43afc765479e87dfb693ab27 Mon Sep 17 00:00:00 2001 From: Thomas Roque Date: Mon, 1 May 2023 13:47:27 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f30807f4..d83010a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,8 +31,13 @@ jobs: run: npm ci shell: bash - - name: Build - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm run dist - shell: bash \ No newline at end of file + - name: Build/release Electron app + uses: samuelmeuli/action-electron-builder@v1 + with: + # GitHub token, automatically provided to the action + # (No need to define this secret in the repo settings) + github_token: ${{ secrets.github_token }} + + # If the commit is tagged with a version (e.g. "v1.0.0"), + # release the app after building + release: ${{ startsWith(github.ref, 'refs/tags/v') }}