-
Notifications
You must be signed in to change notification settings - Fork 1
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
7 changed files
with
180 additions
and
29 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 |
---|---|---|
@@ -1,38 +1,120 @@ | ||
name: .NET | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
on: [ push, pull_request ] | ||
|
||
env: | ||
DOTNET_SDK_VERSION: 5.0.x | ||
|
||
jobs: | ||
build: | ||
build-generic-netf: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }} | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build with .NET Core | ||
run: dotnet publish -c Release -f net5.0 -o out/generic | ||
|
||
- name: Build with .NET Framework | ||
run: dotnet publish -c Release -f net48 -o out/generic-netf | ||
- name: Upload generic artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ github.event.repository.name }}-generic | ||
path: out/generic | ||
|
||
- name: Archive generic-netf release | ||
uses: thedoctor0/zip-release@master | ||
with: | ||
files: out/generic-netf | ||
type: 'zip' | ||
filename: 'out/generic-netf.zip' | ||
|
||
- name: Upload generic-netf artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ github.event.repository.name }}-generic-netf | ||
path: out/generic-netf | ||
path: out/generic-netf.zip | ||
|
||
build-generic: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }} | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build with .NET Core | ||
run: dotnet publish -c Release -f net5.0 -o out/generic | ||
|
||
- name: Archive generic release | ||
uses: thedoctor0/zip-release@master | ||
with: | ||
files: out/generic | ||
type: 'zip' | ||
filename: 'out/generic.zip' | ||
|
||
- name: Upload generic artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ github.event.repository.name }}-generic | ||
path: out/generic.zip | ||
|
||
release: | ||
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} | ||
needs: [build-generic-netf, build-generic] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download generic artifacts | ||
uses: actions/download-artifact@v2.0.10 | ||
with: | ||
name: ${{ github.event.repository.name }}-generic | ||
path: out | ||
|
||
- name: Download generic-netf artifacts | ||
uses: actions/download-artifact@v2.0.10 | ||
with: | ||
name: ${{ github.event.repository.name }}-generic-netf | ||
path: out | ||
|
||
- name: Create GitHub release | ||
id: github_release | ||
uses: actions/create-release@v1.1.4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.event.repository.name }} V${{ github.ref }} | ||
|
||
- name: Upload generic artifacts to GitHub release | ||
uses: actions/upload-release-asset@v1.0.2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.github_release.outputs.upload_url }} | ||
asset_path: out/generic.zip | ||
asset_name: generic.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Upload generic-netf artifacts to GitHub release | ||
uses: actions/upload-release-asset@v1.0.2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.github_release.outputs.upload_url }} | ||
asset_path: out/generic-netf.zip | ||
asset_name: generic-netf.zip | ||
asset_content_type: application/zip |
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,17 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<ApplicationIcon/> | ||
<Authors>Vital7</Authors> | ||
<Company>$(Authors)</Company> | ||
<Copyright>Copyright © $(Company) 2020-$([System.DateTime]::UtcNow.Year)</Copyright> | ||
<PackageIcon/> | ||
<PackageProjectUrl>https://github.com/$(Company)/$(MSBuildProjectName)</PackageProjectUrl> | ||
<PackageReleaseNotes>$(PackageProjectUrl)/releases</PackageReleaseNotes> | ||
<PublicSign>false</PublicSign> | ||
<OutputType>Library</OutputType> | ||
<RepositoryUrl>$(PackageProjectUrl).git</RepositoryUrl> | ||
<SignAssembly>false</SignAssembly> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project> | ||
|
||
<ItemGroup> | ||
<PackageVersion Include="AngleSharp" Version="0.14.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'net48'"> | ||
<PackageVersion Include="IndexRange" Version="1.0.0" /> | ||
</ItemGroup> | ||
|
||
<Import Project="ArchiSteamFarm/Directory.Packages.props" /> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
using System; | ||
|
||
[assembly: CLSCompliant(true)] |
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,12 @@ | ||
<Project> | ||
|
||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../ArchiSteamFarm/'))"/> | ||
|
||
<PropertyGroup> | ||
<Description>ASF plugin to remove games from account.</Description> | ||
<Version>2.0.0.0</Version> | ||
</PropertyGroup> | ||
|
||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"/> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<AssemblyVersion>1.1.0.0</AssemblyVersion> | ||
<FileVersion>1.1.0.0</FileVersion> | ||
<Nullable>enable</Nullable> | ||
<TargetFrameworks>net5.0;net48</TargetFrameworks> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="AngleSharp" Version="*" IncludeAssets="compile" /> | ||
<PackageReference Include="JetBrains.Annotations" Version="*" IncludeAssets="compile" /> | ||
<PackageReference Include="System.Composition.AttributedModel" Version="*" IncludeAssets="compile" /> | ||
<PackageReference Include="AngleSharp" IncludeAssets="compile" /> | ||
<PackageReference Include="JetBrains.Annotations" IncludeAssets="compile" /> | ||
<PackageReference Include="System.Composition.AttributedModel" IncludeAssets="compile" /> | ||
<ProjectReference Include="..\ArchiSteamFarm\ArchiSteamFarm\ArchiSteamFarm.csproj" Private="false" ExcludeAssets="all" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'net48'"> | ||
<PackageReference Include="IndexRange" IncludeAssets="compile" /> | ||
</ItemGroup> | ||
|
||
</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