From 601db4913964ebe5be944f0252b5e72ac2f49b70 Mon Sep 17 00:00:00 2001 From: Naomi Date: Fri, 10 Jun 2022 03:45:34 +0100 Subject: [PATCH] Create dotnet.yml --- .github/workflows/dotnet.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..169d712 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,38 @@ +name: Cethleann +on: + push: + branches: [ develop ] + pull_request: + branches: [ develop ] +env: + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages +jobs: + build: + runs-on: windows-latest + steps: + - name: Cache + uses: actions/cache@v2 + with: + path: ${{ github.workspace }}/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + restore-keys: | + ${{ runner.os }}-nuget- + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: 'recursive' + - name: Install .NET Core 7 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 7.0.x + include-prerelease: true + - name: Restore project + run: dotnet restore + - name: Build Release + run: dotnet build -c Release -o dist/release + - name: Upload Release + uses: actions/upload-artifact@v2 + with: + name: cethleann-net7-win-x86-64-rel + path: dist/release