From 1d1aadd4362348b86b815d88fa7c6d41fbaf0251 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 10 Mar 2022 23:06:31 -0300 Subject: [PATCH 1/4] Update Readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e75dad3..097488b 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ This package is intended to build Autodesk `PackageContent.xml` and `RevitAddin. [![Revit](https://img.shields.io/badge/Revit-black.svg)](../..) [![Visual Studio 2019](https://img.shields.io/badge/Visual%20Studio%202019-16.11.7+-blue)](../..) +[![Nuke](https://img.shields.io/badge/Nuke-Build-blue)](https://nuke.build/) [![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Publish](../../actions/workflows/Publish.yml/badge.svg)](../../actions) [![Develop](../../actions/workflows/Develop.yml/badge.svg)](../../actions) From 6ab136cbe8c7b19bf0fc285b716f8b79e8e91403 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Fri, 17 Jun 2022 13:38:19 -0300 Subject: [PATCH 2/4] - Update to net6.0 --- .github/workflows/Develop.yml | 2 +- .github/workflows/Publish.yml | 2 +- .../Autodesk.PackageBuilder.Example.csproj | 2 +- Build/Build.cs | 1 - Build/Build.csproj | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Develop.yml b/.github/workflows/Develop.yml index d953b19..9eccadf 100644 --- a/.github/workflows/Develop.yml +++ b/.github/workflows/Develop.yml @@ -23,7 +23,7 @@ jobs: - name: NuGet Setup uses: actions/setup-dotnet@v1 with: - dotnet-version: 5.0.x + dotnet-version: 6.0.x - name: "NuGet Add Source Organization" run: if ("${{ secrets.ORGANIZATION_SOURCE_PACKAGE_PASSWORD }}" -ne "") { dotnet nuget add source --username ${{ secrets.ORGANIZATION_SOURCE_PACKAGE_USERNAME }} --password ${{ secrets.ORGANIZATION_SOURCE_PACKAGE_PASSWORD }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{github.repository_owner}}/index.json" } diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index cad4e21..f508116 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -20,7 +20,7 @@ jobs: - name: NuGet Setup uses: actions/setup-dotnet@v1 with: - dotnet-version: 5.0.x + dotnet-version: 6.0.x - name: "NuGet Add Source Organization" run: if ("${{ secrets.ORGANIZATION_SOURCE_PACKAGE_PASSWORD }}" -ne "") { dotnet nuget add source --username ${{ secrets.ORGANIZATION_SOURCE_PACKAGE_USERNAME }} --password ${{ secrets.ORGANIZATION_SOURCE_PACKAGE_PASSWORD }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{github.repository_owner}}/index.json" } diff --git a/Autodesk.PackageBuilder.Examples/Autodesk.PackageBuilder.Example.csproj b/Autodesk.PackageBuilder.Examples/Autodesk.PackageBuilder.Example.csproj index 3c11191..98adad9 100644 --- a/Autodesk.PackageBuilder.Examples/Autodesk.PackageBuilder.Example.csproj +++ b/Autodesk.PackageBuilder.Examples/Autodesk.PackageBuilder.Example.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 false false diff --git a/Build/Build.cs b/Build/Build.cs index 48bb162..26ca27d 100644 --- a/Build/Build.cs +++ b/Build/Build.cs @@ -3,7 +3,6 @@ using ricaun.Nuke; using ricaun.Nuke.Components; -[CheckBuildProjectConfigurations] partial class Build : NukeBuild, IPublishPack, ICompileExample { public static int Main() => Execute(x => x.From().Build); diff --git a/Build/Build.csproj b/Build/Build.csproj index 646da78..dba3b7f 100644 --- a/Build/Build.csproj +++ b/Build/Build.csproj @@ -1,7 +1,7 @@  Exe - net5.0 + net6.0 CS0649;CS0169 . From 8f1c062fa9a50b37425bb0d6b5953f7f00f6b3b9 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Fri, 17 Jun 2022 13:47:12 -0300 Subject: [PATCH 3/4] Update Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 097488b..ba9a7cd 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This package is intended to build Autodesk `PackageContent.xml` and `RevitAddin. [![Autodesk](https://img.shields.io/badge/Autodesk-black?logo=autodesk&logoColor=white)](../..) [![Revit](https://img.shields.io/badge/Revit-black.svg)](../..) -[![Visual Studio 2019](https://img.shields.io/badge/Visual%20Studio%202019-16.11.7+-blue)](../..) +[![Visual Studio 2022](https://img.shields.io/badge/Visual%20Studio-2022-blue)](../..) [![Nuke](https://img.shields.io/badge/Nuke-Build-blue)](https://nuke.build/) [![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Publish](../../actions/workflows/Publish.yml/badge.svg)](../../actions) From 4c23b75e83f0d4dabece1eebe74c863f51d08621 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Wed, 15 Nov 2023 09:47:23 -0300 Subject: [PATCH 4/4] Update Build --- .github/workflows/{Publish.yml => Build.yml} | 33 +++++++--------- .github/workflows/Develop.yml | 40 -------------------- README.md | 3 +- 3 files changed, 15 insertions(+), 61 deletions(-) rename .github/workflows/{Publish.yml => Build.yml} (66%) delete mode 100644 .github/workflows/Develop.yml diff --git a/.github/workflows/Publish.yml b/.github/workflows/Build.yml similarity index 66% rename from .github/workflows/Publish.yml rename to .github/workflows/Build.yml index f508116..d9469c7 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Build.yml @@ -1,43 +1,38 @@ # ------------------------------------------------------------------------------ -# Publish +# Build.yml # ------------------------------------------------------------------------------ -name: Publish +name: Build on: push: - branches: + pull_request: + branches-ignore: - master + - main workflow_dispatch: jobs: - Publish: - name: Publish + Build: + name: Build runs-on: windows-latest steps: - uses: actions/checkout@v1 - name: NuGet Setup - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v2 with: - dotnet-version: 6.0.x + dotnet-version: | + 6.0.x + 7.0.x - name: "NuGet Add Source Organization" run: if ("${{ secrets.ORGANIZATION_SOURCE_PACKAGE_PASSWORD }}" -ne "") { dotnet nuget add source --username ${{ secrets.ORGANIZATION_SOURCE_PACKAGE_USERNAME }} --password ${{ secrets.ORGANIZATION_SOURCE_PACKAGE_PASSWORD }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{github.repository_owner}}/index.json" } - - name: Cache .nuke/temp, ~/.nuget/packages - uses: actions/cache@v2 - with: - path: | - .nuke/temp - ~/.nuget/packages - key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} - name: Run './build/build.cmd' run: ./build/build.cmd --root ./build env: GitHubToken: ${{ secrets.GITHUB_TOKEN }} - - NugetApiUrl: ${{ secrets.NUGET_API_URL }} - NugetApiKey: ${{ secrets.NUGET_API_KEY }} - SignFile: ${{ secrets.SIGN_FILE }} - SignPassword: ${{ secrets.SIGN_PASSWORD }} \ No newline at end of file + SignPassword: ${{ secrets.SIGN_PASSWORD }} + NugetApiUrl: ${{ secrets.NUGET_API_URL }} + NugetApiKey: ${{ secrets.NUGET_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/Develop.yml b/.github/workflows/Develop.yml deleted file mode 100644 index 9eccadf..0000000 --- a/.github/workflows/Develop.yml +++ /dev/null @@ -1,40 +0,0 @@ -# ------------------------------------------------------------------------------ -# Develop -# ------------------------------------------------------------------------------ - -name: Develop - -on: - push: - branches-ignore: - - master - pull_request: - branches-ignore: - - master - workflow_dispatch: - -jobs: - Develop: - name: Develop - runs-on: windows-latest - steps: - - uses: actions/checkout@v1 - - - name: NuGet Setup - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 6.0.x - - name: "NuGet Add Source Organization" - run: if ("${{ secrets.ORGANIZATION_SOURCE_PACKAGE_PASSWORD }}" -ne "") { dotnet nuget add source --username ${{ secrets.ORGANIZATION_SOURCE_PACKAGE_USERNAME }} --password ${{ secrets.ORGANIZATION_SOURCE_PACKAGE_PASSWORD }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{github.repository_owner}}/index.json" } - - - name: Cache .nuke/temp, ~/.nuget/packages - uses: actions/cache@v2 - with: - path: | - .nuke/temp - ~/.nuget/packages - key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} - - name: Run './build/build.cmd' - run: ./build/build.cmd --root ./build - env: - GitHubToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index ba9a7cd..028656e 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,7 @@ This package is intended to build Autodesk `PackageContent.xml` and `RevitAddin. [![Visual Studio 2022](https://img.shields.io/badge/Visual%20Studio-2022-blue)](../..) [![Nuke](https://img.shields.io/badge/Nuke-Build-blue)](https://nuke.build/) [![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) -[![Publish](../../actions/workflows/Publish.yml/badge.svg)](../../actions) -[![Develop](../../actions/workflows/Develop.yml/badge.svg)](../../actions) +[![Build](../../actions/workflows/Build.yml/badge.svg)](../../actions) [![Release](https://img.shields.io/nuget/v/Autodesk.PackageBuilder?logo=nuget&label=release&color=blue)](https://www.nuget.org/packages/Autodesk.PackageBuilder) ## Examples