generated from MaxGripe/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 811 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
name: .NET Build and Release
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build-windows:
name: Build on Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build for Windows
run: |
dotnet publish --runtime win-x64 -c Release -o "output/win-x64"
- name: Create GitHub Release and Upload Artifact
uses: softprops/action-gh-release@v2
with:
tag_name: "latest"
name: "Auto-release"
files: "output/win-x64/jpgWhiteBorderAdder.exe"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}