Skip to content

Commit

Permalink
Merge pull request #2 from LoveDoLove/master
Browse files Browse the repository at this point in the history
Auto Release With Github Actions
  • Loading branch information
PoKeRGT authored Jul 14, 2024
2 parents dfd98e9 + bc9f843 commit 4aef34b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: .NET Framework Build on Windows

on:
workflow_dispatch:
push:
branches:
- master

permissions:
contents: write

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup MSBuild path
uses: microsoft/setup-msbuild@v2

- name: Restore NuGet packages
run: msbuild /t:restore

- name: Build project
run: msbuild /p:Configuration=Release /p:TargetFrameworkVersion=v4.8 /p:RestorePackagesConfig=true

- name: Set ENV date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
**/bin/Release/**
token: ${{ github.token }}
tag_name: ${{ steps.date.outputs.date }}
6 changes: 3 additions & 3 deletions FirewallCleanup/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
</configuration>
3 changes: 2 additions & 1 deletion FirewallCleanup/FirewallCleanup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<OutputType>Exe</OutputType>
<RootNamespace>FirewallCleanup</RootNamespace>
<AssemblyName>FirewallCleanup</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
Expand All @@ -27,6 +27,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down

0 comments on commit 4aef34b

Please sign in to comment.