-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
151 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build and Publish | ||
|
||
on: | ||
#pull_request: | ||
#branches: | ||
#- '*' | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Create Temporary Publish Directory | ||
run: mkdir -p publish-temp | ||
|
||
- name: Build and Publish | ||
run: | | ||
dotnet restore --runtime win-x64 | ||
dotnet publish -c Release -o publish-temp/PersonNummerValidationTool --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:UseAppHost=true --runtime win-x64 PersonNummerValidationTool/PersonNummerValidationTool.csproj | ||
- name: Create Target Directory | ||
run: mkdir -p publish | ||
|
||
- name: Move EXE to Target Directory | ||
run: mv publish-temp/PersonNummerValidationTool/*.exe publish/ | ||
|
||
- name: List generated files | ||
run: ls -R publish-temp/PersonNummerValidationTool | ||
|
||
- name: Remove Temporary Publish Directory | ||
run: rm -rf publish-temp | ||
|
||
- name: Upload EXE | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: .ZIP-acrhive | ||
path: publish | ||
|
||
- name: Create Downloaded Artifact Directory | ||
run: mkdir -p downloaded-artifact | ||
|
||
- name: Download EXE | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: .ZIP-acrhive | ||
path: downloaded-artifact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
11 changes: 9 additions & 2 deletions
11
PersonNummerValidationTool/PersonNummerValidationTool.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<UseRidGraph>true</UseRidGraph> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
<RuntimeIdentifier>win10-x64</RuntimeIdentifier> | ||
<AdditionalUsings>global using Xunit;</AdditionalUsings> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<OutputPath>publish\</OutputPath> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters