Skip to content
This repository was archived by the owner on Jun 10, 2022. It is now read-only.

Commit 601db49

Browse files
authored
Create dotnet.yml
1 parent ea6474b commit 601db49

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Cethleann
2+
on:
3+
push:
4+
branches: [ develop ]
5+
pull_request:
6+
branches: [ develop ]
7+
env:
8+
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
steps:
13+
- name: Cache
14+
uses: actions/cache@v2
15+
with:
16+
path: ${{ github.workspace }}/.nuget/packages
17+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
18+
restore-keys: |
19+
${{ runner.os }}-nuget-
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
submodules: 'recursive'
25+
- name: Install .NET Core 7
26+
uses: actions/setup-dotnet@v1
27+
with:
28+
dotnet-version: 7.0.x
29+
include-prerelease: true
30+
- name: Restore project
31+
run: dotnet restore
32+
- name: Build Release
33+
run: dotnet build -c Release -o dist/release
34+
- name: Upload Release
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: cethleann-net7-win-x86-64-rel
38+
path: dist/release

0 commit comments

Comments
 (0)