From 82c8e517e3ce13c56ed4179bb76a54bb9caa9582 Mon Sep 17 00:00:00 2001 From: Vedant <83997633+vedantmgoyal2009@users.noreply.github.com> Date: Mon, 27 Jun 2022 17:54:45 +0530 Subject: [PATCH 1/5] Update release.yml --- .github/workflows/release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3a64141a..696861350 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,15 +45,13 @@ jobs: npx electron-builder --linux AppImage --arm64 --publish always npx electron-builder --linux AppImage --armv7l --publish always env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_PAT }} - name: Release Electron app - MacOS uses: samuelmeuli/action-electron-builder@v1 if: startsWith(matrix.os, 'macos') with: - # GitHub token, automatically provided to the action - # (No need to define this secret in the repo settings) - github_token: ${{ secrets.github_token }} + github_token: ${{ secrets.GITHUB_PAT }} # If the commit is tagged with a version (e.g. "v1.0.0"), # release the app after building @@ -63,10 +61,8 @@ jobs: uses: samuelmeuli/action-electron-builder@v1 if: startsWith(matrix.os, 'windows') with: - # GitHub token, automatically provided to the action - # (No need to define this secret in the repo settings) - github_token: ${{ secrets.github_token }} + github_token: ${{ secrets.GITHUB_PAT }} # 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') }} \ No newline at end of file + release: ${{ startsWith(github.ref, 'refs/tags/v') }} From 1e5876ebf6cb1479631974705ad8770a58a09170 Mon Sep 17 00:00:00 2001 From: Vedant <83997633+vedantmgoyal2009@users.noreply.github.com> Date: Mon, 27 Jun 2022 18:01:25 +0530 Subject: [PATCH 2/5] Create winget.yml --- .github/workflows/winget.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/winget.yml diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml new file mode 100644 index 000000000..8c5ab05ee --- /dev/null +++ b/.github/workflows/winget.yml @@ -0,0 +1,12 @@ +name: Publish to WinGet +on: + release: + types: [released] +jobs: + publish: + runs-on: windows-latest # action can only be run on windows + steps: + - uses: vedantmgoyal2009/winget-releaser@latest + with: + identifier: 4gray.iptvnator + token: ${{ secrets.WINGET_TOKEN }} From dee8acba1c2591fe9317c10c17c6ab45165943bb Mon Sep 17 00:00:00 2001 From: Vedant <83997633+vedantmgoyal2009@users.noreply.github.com> Date: Mon, 27 Jun 2022 18:02:42 +0530 Subject: [PATCH 3/5] Update winget.yml --- .github/workflows/winget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index 8c5ab05ee..1103982a4 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -9,4 +9,4 @@ jobs: - uses: vedantmgoyal2009/winget-releaser@latest with: identifier: 4gray.iptvnator - token: ${{ secrets.WINGET_TOKEN }} + token: ${{ secrets.GITHUB_PAT }} From 5ac199281d0fa24998cf01dff148316f7684e46a Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 23 Sep 2022 13:44:34 +0200 Subject: [PATCH 4/5] 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 From 1e127d069e897818cff89dd885a528a3639c5b31 Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 23 Sep 2022 13:46:30 +0200 Subject: [PATCH 5/5] ci: rename secret token --- .github/workflows/winget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index 1103982a4..aaf85a13c 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -9,4 +9,4 @@ jobs: - uses: vedantmgoyal2009/winget-releaser@latest with: identifier: 4gray.iptvnator - token: ${{ secrets.GITHUB_PAT }} + token: ${{ secrets.PAT }}