-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (30 loc) · 844 Bytes
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
# get short commit hash
- name: Get Commit short hash
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
shell: bash
- name: Restore dependencies
run: dotnet restore
- name: Build
run: |
ls -hl .
dotnet publish /p:OutputType=WinExe
ls -hl ./bin/Release
# cp -r ./glossaries ./db "changelog.md"