-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 996 Bytes
/
Copy pathmain.yml
File metadata and controls
45 lines (36 loc) · 996 Bytes
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
39
40
41
42
43
44
45
name: Build AOT .NET Project for Windows
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build the project
run: dotnet build -c Release
- name: Publish AOT for Windows
run: dotnet publish -c Release
- name: GH Release
uses: softprops/action-gh-release@v2.2.1
with:
files: ./bin/Release/net10.0/win-x64/publish/*
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Archive the build
uses: actions/upload-artifact@v4
with:
name: windows-aot-build
path: ./bin/Release/net10.0/win-x64/publish/