chore: setup dotnet to fix missing DLL in winget workflow

This commit is contained in:
Jelle Glebbeek
2021-06-02 22:21:55 +02:00
committed by GitHub
parent e9060b8ab1
commit 20318eaa2b

View File

@@ -11,6 +11,11 @@ jobs:
wingetcreate-update:
runs-on: windows-latest
steps:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Run wingetcreate
shell: pwsh
run: . { iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe } | iex; wingetcreate.exe update -s -i jely2002.youtube-dl-gui -u https://github.com/jely2002/youtube-dl-gui/releases/download/v${{ github.event.inputs.version }}/YouTube-Downloader-GUI-Setup-${{ github.event.inputs.version }}.exe -v ${{ github.event.inputs.version }} -t ${{ secrets.GITHUB_TOKEN }}
shell: cmd
run: |
curl https://aka.ms/wingetcreate/latest -L --output wingetcreate.exe
wingetcreate.exe update -s -i jely2002.youtube-dl-gui -u https://github.com/jely2002/youtube-dl-gui/releases/download/v${{ github.event.inputs.version }}/YouTube-Downloader-GUI-Setup-${{ github.event.inputs.version }}.exe -v ${{ github.event.inputs.version }} -t ${{ secrets.GITHUB_TOKEN }}