Merge pull request #141 from Noob-Lol/master #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: yt-dlp GUI CI Builder | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Debug] | |
runs-on: windows-latest | |
env: | |
Solution_Name: yt-dlp-gui.sln | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.400 | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
- name: Restore the application | |
run: dotnet restore $env:Solution_Name | |
- name: Build | |
run: dotnet publish -c ${{ matrix.configuration }} -r win-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: yt-dlp-gui-${{ github.sha }}-${{ matrix.configuration }} | |
path: "D:\\a\\yt-dlp-gui\\yt-dlp-gui\\yt-dlp-gui\\bin\\Debug\\net6.0-windows10.0.17763.0\\win-x64\\publish" |