Skip to content

Commit

Permalink
Merge pull request #49 from cake-contrib/release/0.5.1
Browse files Browse the repository at this point in the history
release/0.5.1
  • Loading branch information
nils-a authored Aug 8, 2020
2 parents 889d4c4 + 2fcc6a8 commit 35e0f53
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
image:
- Visual Studio 2017
- Visual Studio 2019

pull_requests:
do_not_increment_build_number: true
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/publishDocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Documentation

on:
workflow_dispatch

env:
WYAM_ACCESS_TOKEN: ${{ secrets.API_TOKEN }}
# secrets.GITHUB_TOKEN has no permissions to push, sadly.
WYAM_DEPLOY_BRANCH: 'gh-pages'
#WYAM_DEPLOY_REMOTE: does not exist in any context, will be dynamically set - see below

jobs:
cake:
runs-on: windows-latest

steps:
- name: checkout
uses: actions/checkout@v2 #https://github.com/actions/checkout
with:
fetch-depth: 0 # GitVersion is somewhat irritated when fetch-depth is "1"....

- name: call cake
run: |
$env:WYAM_DEPLOY_REMOTE = $( git remote get-url --push origin )
.\build.ps1 -Target PublishDocs -Verbosity Diagnostic
2 changes: 1 addition & 1 deletion recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#load nuget:?package=Cake.Recipe&version=1.1.1
#load nuget:?package=Cake.Recipe&version=1.1.2

Environment.SetVariableNames();

Expand Down
33 changes: 0 additions & 33 deletions src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -234,36 +234,3 @@ dotnet_naming_style.camelcase.required_suffix =
dotnet_naming_style.camelcase.word_separator =
dotnet_naming_style.camelcase.capitalization = camel_case

## IDE

# IDE0005: Using directive is unnecessary. (but ignore on auto-generated)
dotnet_diagnostic.IDE0005.severity = warning
dotnet_diagnostic.IDE0005_gen.severity = none

# IDE0061: Misplaced using directive
dotnet_diagnostic.IDE0061.severity = suggestion

## SA... StyleCop

# SA1200: Using directives should be placed correctly
dotnet_diagnostic.SA1200.severity = none

# SA1101: Prefix local calls with this
dotnet_diagnostic.SA1101.severity = none

# SA1633: File should have header
dotnet_diagnostic.SA1633.severity = none

## CA... FxCop

# CA1062: Validate arguments of public methods
dotnet_diagnostic.CA1062.severity = none

# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity = none

# CA1040: Avoid empty interfaces
dotnet_diagnostic.CA1040.severity = none

# CA1044: collides with r# - rules.
dotnet_diagnostic.CA1044.severity = none
1 change: 1 addition & 0 deletions src/Cake.7zip.Tests/Cake.7zip.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)'!='Unix'">$(TargetFrameworks);net461</TargetFrameworks>
<CodeAnalysisRuleSet>..\cake.7zip.ruleset</CodeAnalysisRuleSet>

<IsPackable>false</IsPackable>

Expand Down
3 changes: 2 additions & 1 deletion src/Cake.7zip/Cake.7zip.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<CodeAnalysisRuleSet>..\cake.7zip.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -17,7 +18,6 @@
<Authors>Nils Andresen</Authors>
<Copyright>Copyright © $(FullYear) — Nils Andresen</Copyright>
<Description>makes 7zip available as a tool in cake</Description>
<PackageIconUrl></PackageIconUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://cake-contrib.github.io/Cake.7zip</PackageProjectUrl>
<PackageTags>cake;addin;SevenZip</PackageTags>
Expand All @@ -26,6 +26,7 @@
<RootNamespace>Cake.SevenZip</RootNamespace>
<Version>0.0.1</Version>
<PackageIcon>icon.png</PackageIcon>
<PackageIconUrl>https://cdn.jsdelivr.net/gh/cake-contrib/graphics/png/cake-contrib-medium.png</PackageIconUrl>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project>
<PropertyGroup>
<!-- VS 2017 defaults to 7.0 -->
<LangVersion>7.3</LangVersion>
</PropertyGroup>
</Project>
20 changes: 20 additions & 0 deletions src/cake.7zip.ruleset
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Rules for Cake.7zip" ToolsVersion="16.0">
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp.Features" RuleNamespace="Microsoft.CodeAnalysis.CSharp.Features">
<Rule Id="IDE0005" Action="Warning" />
<Rule Id="IDE0005_gen" Action="None" />
</Rules>
<Rules AnalyzerId="Microsoft.CodeQuality.Analyzers" RuleNamespace="Microsoft.CodeQuality.Analyzers">
<Rule Id="CA1040" Action="None" />
<Rule Id="CA1044" Action="None" />
<Rule Id="CA1062" Action="None" />
</Rules>
<Rules AnalyzerId="Microsoft.NetCore.Analyzers" RuleNamespace="Microsoft.NetCore.Analyzers">
<Rule Id="CA1303" Action="None" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA1101" Action="None" />
<Rule Id="SA1200" Action="None" />
<Rule Id="SA1633" Action="None" />
</Rules>
</RuleSet>

0 comments on commit 35e0f53

Please sign in to comment.