Skip to content

Commit 2f311fd

Browse files
committed
add eivp release for workflow
1 parent 8cec64e commit 2f311fd

File tree

4 files changed

+81
-1
lines changed

4 files changed

+81
-1
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build EIV_DataPack.Console
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**/*.md'
7+
pull_request:
8+
paths-ignore:
9+
- '**/*.md'
10+
workflow_dispatch:
11+
# allows manual trigger
12+
13+
jobs:
14+
linux:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: '8.0.x'
22+
- name: Publish
23+
run: dotnet publish EIV_DataPack.Console/EIV_DataPack.ConsoleApp.csproj /p:PublishProfile=ReleaseLinux
24+
- name: Upload artifact (Linux)
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: EIV_DataPack.ConsoleApp-Linux
28+
path: Out/Linux
29+
if-no-files-found: error
30+
31+
windows:
32+
runs-on: windows-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Setup .NET
36+
uses: actions/setup-dotnet@v4
37+
with:
38+
dotnet-version: '8.0.x'
39+
- name: Publish
40+
run: dotnet publish EIV_DataPack.Console/EIV_DataPack.ConsoleApp.csproj /p:PublishProfile=ReleaseWin
41+
- name: Upload artifact (Win)
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: EIV_DataPack.ConsoleApp-Win
45+
path: Out/Win
46+
if-no-files-found: error

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ publish/
184184
*.azurePubxml
185185
# Note: Comment the next line if you want to checkin your web deploy settings,
186186
# but database connection strings (with potential passwords) will be unencrypted
187-
*.pubxml
188187
*.publishproj
189188

190189
# Microsoft Azure Web App publish settings. Comment the next line if you want to
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>..\Out\Linux</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<_TargetId>Folder</_TargetId>
12+
<TargetFramework>net8.0</TargetFramework>
13+
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
14+
<SelfContained>false</SelfContained>
15+
<PublishSingleFile>true</PublishSingleFile>
16+
</PropertyGroup>
17+
</Project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>..\Out\Win\</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<_TargetId>Folder</_TargetId>
12+
<TargetFramework>net8.0</TargetFramework>
13+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
14+
<SelfContained>false</SelfContained>
15+
<PublishSingleFile>true</PublishSingleFile>
16+
<PublishReadyToRun>false</PublishReadyToRun>
17+
</PropertyGroup>
18+
</Project>

0 commit comments

Comments
 (0)