Skip to content

Commit

Permalink
Added github workflows (Actions)
Browse files Browse the repository at this point in the history
  • Loading branch information
Myszax committed Jun 1, 2023
1 parent 70b5f73 commit f51f71c
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 16 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy-gothic-output-inspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Deploy Gothic Output Inspector"

on:
push:
tags:
- "v*"

env:
PROJECT_PATH: WPFUI/WPFUI.csproj

jobs:
Deploy:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x

- name: Restore
run: dotnet restore "${{ env.PROJECT_PATH }}"

- name: Build
run: dotnet build "${{ env.PROJECT_PATH }}" -c Release --no-restore

- name: Publish
run: dotnet publish "${{ env.PROJECT_PATH }}" -c Release --self-contained true -r win-x64 -p:PublishSingleFile=true --no-build --no-restore

- name: Create Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}

- name: Upload Release
uses: csexton/release-asset-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pattern: WPFUI/bin/Release/net7.0-windows/win-x64/publish/*.exe
release-url: ${{ steps.create_release.outputs.upload_url }}
35 changes: 19 additions & 16 deletions WPFUI/WPFUI.csproj
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<PublishSingleFile>true</PublishSingleFile>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<AssemblyName>Gothic Output Inspector</AssemblyName>
<ApplicationIcon>Resources\goi.ico</ApplicationIcon>
</PropertyGroup>
</PropertyGroup>

<ItemGroup>
<ItemGroup>
<Content Include="Resources\goi.ico" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
<PackageReference Include="FontAwesome6.Svg" Version="2.5.1" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.39" />
<PackageReference Include="ModernWpfUI" Version="0.9.6" />
<PackageReference Include="NAudio" Version="2.1.0" />
</ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
<PackageReference Include="FontAwesome6.Svg" Version="2.5.1" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.39" />
<PackageReference Include="ModernWpfUI" Version="0.9.6" />
<PackageReference Include="NAudio" Version="2.1.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Parser\Parser.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Parser\Parser.csproj" />
</ItemGroup>

</Project>

0 comments on commit f51f71c

Please sign in to comment.