Updated documentation #23
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: Branch Main Build | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.csproj' | |
- '**.razor' | |
- '**.cs' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout to the repository | |
uses: actions/checkout@v4 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@2 | |
- name: Setup Nuget Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Install dependencies | |
run: nuget restore TgDownloader.sln | |
- name: Build app for Release Any CPU | |
run: msbuild TgDownloader.sln -t:rebuild -verbosity:quiet -property:Configuration=Release -property:Platform="Any CPU" |