diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..152047a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build project +on: + create: + tags: + - 'v*' +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1.0.2 + - name: Restore NuGet + run: nuget restore TitlebarZ.sln + - name: Change CWD to TitlebarZ.WPF + run: cd TitlebarZ.WPF + - name: Run MSBuild + run: msbuild TitlebarZ.WPF.csproj /p:Configuration=Release + - name: Create release + uses: ncipollo/release-action@v1.8.10 + with: + artifacts: "bin/Release/TitlebarZ.exe" + token: ${{ secrets.GITHUB_TOKEN }}