From 5ac199281d0fa24998cf01dff148316f7684e46a Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 23 Sep 2022 13:44:34 +0200 Subject: [PATCH] Revert "Update release.yml" This reverts commit 82c8e517e3ce13c56ed4179bb76a54bb9caa9582. --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 696861350..b3a64141a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,13 +45,15 @@ jobs: npx electron-builder --linux AppImage --arm64 --publish always npx electron-builder --linux AppImage --armv7l --publish always env: - GH_TOKEN: ${{ secrets.GITHUB_PAT }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Release Electron app - MacOS uses: samuelmeuli/action-electron-builder@v1 if: startsWith(matrix.os, 'macos') with: - github_token: ${{ secrets.GITHUB_PAT }} + # 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 @@ -61,8 +63,10 @@ jobs: uses: samuelmeuli/action-electron-builder@v1 if: startsWith(matrix.os, 'windows') with: - github_token: ${{ secrets.GITHUB_PAT }} + # 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') }} + release: ${{ startsWith(github.ref, 'refs/tags/v') }} \ No newline at end of file