diff --git a/.github/workflows/winget-submission.yml b/.github/workflows/winget-submission.yml index ae26597..885de66 100644 --- a/.github/workflows/winget-submission.yml +++ b/.github/workflows/winget-submission.yml @@ -9,12 +9,13 @@ jobs: winget: name: Publish winget package runs-on: windows-latest + env: + WINGET_PAT: ${{ secrets.WINGET_PAT }} steps: - name: Submit package to Winget Community Repo run: | $packageId = "Vencord.Vesktop" - $gitToken = "${{ secrets.WINGET_PAT }}" # Fetching latest release from GitHub $github = Invoke-RestMethod -uri "https://api.github.com/repos/vencord/vesktop/releases" @@ -24,4 +25,4 @@ jobs: # Update package using wingetcreate Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe - .\wingetcreate.exe update $packageId --version $packageVersion --urls "$installerUrl" --submit --token $gitToken + .\wingetcreate.exe update $packageId --version $packageVersion --urls "$installerUrl" --submit --token $env:WINGET_PAT