-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (67 loc) · 2.04 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# 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
# Generates binaries for windows, linux (x64, arm) and macos
name: .NET
on:
push:
branches: [ "main" ]
paths:
- TerminalPilot/**
- .github/**
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./TerminalPilot
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Publish (Linux Arm64)
run: dotnet publish --runtime linux-arm64
- name: Publish (Linux x64)
run: dotnet publish --runtime linux-x64
- name: Publish (Windows x64)
run: dotnet publish --runtime win-x64
- name: Publish (macOS)
run: dotnet publish --runtime osx-x64
- name: Upload Artifact (Windows x64)
uses: actions/upload-artifact@v4
with:
name: TerminalPilotWindows
path: |
./TerminalPilot/bin/Debug/net6.0/win-x64/publish*
- name: Upload Artifact (Linux Arm64)
uses: actions/upload-artifact@v4
with:
name: TerminalPilotLinuxArm64
path: |
./TerminalPilot/bin/Debug/net6.0/linux-arm64/publish*
- name: Upload Artifact (Linux x64)
uses: actions/upload-artifact@v4
with:
name: TerminalPilotLinuxx64
path: |
./TerminalPilot/bin/Debug/net6.0/linux-x64/publish*
- name: Upload Artifact (MacOS)
uses: actions/upload-artifact@v4
with:
name: TerminalPilotMacOS
path: |
./TerminalPilot/bin/Debug/net6.0/osx-x64/publish*
- name: Create Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: true
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
body_path: auto-changelog.md
env:
GITHUB_TOKEN: ${{ github.token }}