diff --git a/.github/templates/default.yml b/.github/templates/default.yml index 711952c61..0841ce620 100644 --- a/.github/templates/default.yml +++ b/.github/templates/default.yml @@ -10,25 +10,10 @@ on: - '**${{ gen.plugin_name }}**.xaml' - '**${{ gen.plugin_name }}**.csproj' -env: - plugin-name: "${{ gen.plugin_name }}" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 10.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "${{ gen.plugin_name }}" + use-devexpress: ${{ gen.use_devexpress }} + secrets: inherit diff --git a/.github/workflows/build-plugin.yml b/.github/workflows/build-plugin.yml new file mode 100644 index 000000000..7c10176bb --- /dev/null +++ b/.github/workflows/build-plugin.yml @@ -0,0 +1,51 @@ +name: build plugin + +on: + workflow_call: + inputs: + plugin-name: + description: "Название плагина (профиль сборки Nuke)." + required: true + type: string + use-devexpress: + description: "Добавить источник пакетов DevExpress перед сборкой." + required: false + default: false + type: boolean + dotnet-version: + description: "Версия .NET SDK." + required: false + default: '10.0.x' + type: string + secrets: + EXTENSIONS_APP_TOKEN: + required: true + REVIT_PLUGINS_APP_TOKEN: + required: true + DEVEXPRESS_FEED_AUTHORIZATION_KEY: + required: false + +jobs: + build: + name: build + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + # Install the .NET workload + - name: Install .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ inputs.dotnet-version }} + + # Add DevExrepress package source: https://nuget.devexpress.com/ + - name: Add DevExpress package source + if: ${{ inputs.use-devexpress }} + run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} + + - name: Run './build.cmd ' + run: ./build.cmd publish --profile ${{ inputs.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/publish.RevitApartmentPlans.yml b/.github/workflows/publish.RevitApartmentPlans.yml index d8e10ae15..ab415e5d5 100644 --- a/.github/workflows/publish.RevitApartmentPlans.yml +++ b/.github/workflows/publish.RevitApartmentPlans.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitApartmentPlans**.cs' - '**RevitApartmentPlans**.xaml' + - '**RevitApartmentPlans**.csproj' -env: - plugin-name: "RevitApartmentPlans" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitApartmentPlans" + secrets: inherit diff --git a/.github/workflows/publish.RevitArchitecturalDocumentation.yml b/.github/workflows/publish.RevitArchitecturalDocumentation.yml index 937d71503..c0bb0b706 100644 --- a/.github/workflows/publish.RevitArchitecturalDocumentation.yml +++ b/.github/workflows/publish.RevitArchitecturalDocumentation.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitArchitecturalDocumentation**.cs' - '**RevitArchitecturalDocumentation**.xaml' + - '**RevitArchitecturalDocumentation**.csproj' -env: - plugin-name: "RevitArchitecturalDocumentation" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitArchitecturalDocumentation" + secrets: inherit diff --git a/.github/workflows/publish.RevitAreaBoundaries.yml b/.github/workflows/publish.RevitAreaBoundaries.yml index c737f7a05..404905f65 100644 --- a/.github/workflows/publish.RevitAreaBoundaries.yml +++ b/.github/workflows/publish.RevitAreaBoundaries.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitAreaBoundaries**.cs' - '**RevitAreaBoundaries**.xaml' + - '**RevitAreaBoundaries**.csproj' -env: - plugin-name: "RevitAreaBoundaries" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitAreaBoundaries" + secrets: inherit diff --git a/.github/workflows/publish.RevitAxonometryViews.yml b/.github/workflows/publish.RevitAxonometryViews.yml index 9246e2c6f..125b8e28c 100644 --- a/.github/workflows/publish.RevitAxonometryViews.yml +++ b/.github/workflows/publish.RevitAxonometryViews.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitAxonometryViews**.cs' - '**RevitAxonometryViews**.xaml' + - '**RevitAxonometryViews**.csproj' -env: - plugin-name: "RevitAxonometryViews" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitAxonometryViews" + secrets: inherit diff --git a/.github/workflows/publish.RevitBatchPrint.yml b/.github/workflows/publish.RevitBatchPrint.yml index 8892e8f79..498ed71e0 100644 --- a/.github/workflows/publish.RevitBatchPrint.yml +++ b/.github/workflows/publish.RevitBatchPrint.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitBatchPrint**.cs' - '**RevitBatchPrint**.xaml' + - '**RevitBatchPrint**.csproj' -env: - plugin-name: "RevitBatchPrint" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitBatchPrint" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitBatchSpecExport.yml b/.github/workflows/publish.RevitBatchSpecExport.yml index c3585cf19..182211326 100644 --- a/.github/workflows/publish.RevitBatchSpecExport.yml +++ b/.github/workflows/publish.RevitBatchSpecExport.yml @@ -10,25 +10,9 @@ on: - '**RevitBatchSpecExport**.xaml' - '**RevitBatchSpecExport**.csproj' -env: - plugin-name: "RevitBatchSpecExport" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitBatchSpecExport" + secrets: inherit diff --git a/.github/workflows/publish.RevitBuildCoordVolumes.yml b/.github/workflows/publish.RevitBuildCoordVolumes.yml index 52e04d1cd..e297dd9b6 100644 --- a/.github/workflows/publish.RevitBuildCoordVolumes.yml +++ b/.github/workflows/publish.RevitBuildCoordVolumes.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitBuildCoordVolumes**.cs' - '**RevitBuildCoordVolumes**.xaml' + - '**RevitBuildCoordVolumes**.csproj' -env: - plugin-name: "RevitBuildCoordVolumes" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitBuildCoordVolumes" + secrets: inherit diff --git a/.github/workflows/publish.RevitCheckingLevels.yml b/.github/workflows/publish.RevitCheckingLevels.yml index 89312afcb..64950ec7d 100644 --- a/.github/workflows/publish.RevitCheckingLevels.yml +++ b/.github/workflows/publish.RevitCheckingLevels.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitCheckingLevels**.cs' - '**RevitCheckingLevels**.xaml' + - '**RevitCheckingLevels**.csproj' -env: - plugin-name: "RevitCheckingLevels" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitCheckingLevels" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitClashDetective.yml b/.github/workflows/publish.RevitClashDetective.yml index c262fefef..2061f93d9 100644 --- a/.github/workflows/publish.RevitClashDetective.yml +++ b/.github/workflows/publish.RevitClashDetective.yml @@ -11,29 +11,10 @@ on: - '**RevitClashDetective**.xaml' - '**RevitClashDetective**.csproj' -env: - plugin-name: "RevitClashDetective" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitClashDetective" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitCopingZones.yml b/.github/workflows/publish.RevitCopingZones.yml index a165bd9c7..36895576a 100644 --- a/.github/workflows/publish.RevitCopingZones.yml +++ b/.github/workflows/publish.RevitCopingZones.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitCopingZones**.cs' - '**RevitCopingZones**.xaml' + - '**RevitCopingZones**.csproj' -env: - plugin-name: "RevitCopingZones" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitCopingZones" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitCopyInteriorSpecs.yml b/.github/workflows/publish.RevitCopyInteriorSpecs.yml index 2063b8647..0b28739d2 100644 --- a/.github/workflows/publish.RevitCopyInteriorSpecs.yml +++ b/.github/workflows/publish.RevitCopyInteriorSpecs.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitCopyInteriorSpecs**.cs' - '**RevitCopyInteriorSpecs**.xaml' + - '**RevitCopyInteriorSpecs**.csproj' -env: - plugin-name: "RevitCopyInteriorSpecs" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitCopyInteriorSpecs" + secrets: inherit diff --git a/.github/workflows/publish.RevitCopyStandarts.yml b/.github/workflows/publish.RevitCopyStandarts.yml index b410b4512..622318949 100644 --- a/.github/workflows/publish.RevitCopyStandarts.yml +++ b/.github/workflows/publish.RevitCopyStandarts.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitCopyStandarts**.cs' - '**RevitCopyStandarts**.xaml' + - '**RevitCopyStandarts**.csproj' -env: - plugin-name: "RevitCopyStandarts" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitCopyStandarts" + secrets: inherit diff --git a/.github/workflows/publish.RevitCopyViews.yml b/.github/workflows/publish.RevitCopyViews.yml index 717e002c7..db717ab85 100644 --- a/.github/workflows/publish.RevitCopyViews.yml +++ b/.github/workflows/publish.RevitCopyViews.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitCopyViews**.cs' - '**RevitCopyViews**.xaml' + - '**RevitCopyViews**.csproj' -env: - plugin-name: "RevitCopyViews" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitCopyViews" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitCorrectNamingCheck.yml b/.github/workflows/publish.RevitCorrectNamingCheck.yml index 7dcffd9d5..b32d26634 100644 --- a/.github/workflows/publish.RevitCorrectNamingCheck.yml +++ b/.github/workflows/publish.RevitCorrectNamingCheck.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitCorrectNamingCheck**.cs' - '**RevitCorrectNamingCheck**.xaml' + - '**RevitCorrectNamingCheck**.csproj' -env: - plugin-name: "RevitCorrectNamingCheck" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitCorrectNamingCheck" + secrets: inherit diff --git a/.github/workflows/publish.RevitCreateViewSheet.yml b/.github/workflows/publish.RevitCreateViewSheet.yml index 0e707bc0a..4df0e5146 100644 --- a/.github/workflows/publish.RevitCreateViewSheet.yml +++ b/.github/workflows/publish.RevitCreateViewSheet.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitCreateViewSheet**.cs' - '**RevitCreateViewSheet**.xaml' + - '**RevitCreateViewSheet**.csproj' -env: - plugin-name: "RevitCreateViewSheet" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitCreateViewSheet" + secrets: inherit diff --git a/.github/workflows/publish.RevitCreatingFiltersByValues.yml b/.github/workflows/publish.RevitCreatingFiltersByValues.yml index ff4102713..08694bfb8 100644 --- a/.github/workflows/publish.RevitCreatingFiltersByValues.yml +++ b/.github/workflows/publish.RevitCreatingFiltersByValues.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitCreatingFiltersByValues**.cs' - '**RevitCreatingFiltersByValues**.xaml' + - '**RevitCreatingFiltersByValues**.csproj' -env: - plugin-name: "RevitCreatingFiltersByValues" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitCreatingFiltersByValues" + secrets: inherit diff --git a/.github/workflows/publish.RevitDeclarations.yml b/.github/workflows/publish.RevitDeclarations.yml index c18137f9b..46dbd549c 100644 --- a/.github/workflows/publish.RevitDeclarations.yml +++ b/.github/workflows/publish.RevitDeclarations.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitDeclarations**.cs' - '**RevitDeclarations**.xaml' + - '**RevitDeclarations**.csproj' -env: - plugin-name: "RevitDeclarations" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitDeclarations" + secrets: inherit diff --git a/.github/workflows/publish.RevitDeleteUnused.yml b/.github/workflows/publish.RevitDeleteUnused.yml index 0a9f46b9f..028f23376 100644 --- a/.github/workflows/publish.RevitDeleteUnused.yml +++ b/.github/workflows/publish.RevitDeleteUnused.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitDeleteUnused**.cs' - '**RevitDeleteUnused**.xaml' + - '**RevitDeleteUnused**.csproj' -env: - plugin-name: "RevitDeleteUnused" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitDeleteUnused" + secrets: inherit diff --git a/.github/workflows/publish.RevitDocumenter.yml b/.github/workflows/publish.RevitDocumenter.yml index d7d12d056..e696d8432 100644 --- a/.github/workflows/publish.RevitDocumenter.yml +++ b/.github/workflows/publish.RevitDocumenter.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitDocumenter**.cs' - '**RevitDocumenter**.xaml' + - '**RevitDocumenter**.csproj' -env: - plugin-name: "RevitDocumenter" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitDocumenter" + secrets: inherit diff --git a/.github/workflows/publish.RevitEditingZones.yml b/.github/workflows/publish.RevitEditingZones.yml index 588e793d3..570c91efa 100644 --- a/.github/workflows/publish.RevitEditingZones.yml +++ b/.github/workflows/publish.RevitEditingZones.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitEditingZones**.cs' - '**RevitEditingZones**.xaml' + - '**RevitEditingZones**.csproj' -env: - plugin-name: "RevitEditingZones" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitEditingZones" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitExamplePlugin.yml b/.github/workflows/publish.RevitExamplePlugin.yml index 0af4c6392..4cc0e464b 100644 --- a/.github/workflows/publish.RevitExamplePlugin.yml +++ b/.github/workflows/publish.RevitExamplePlugin.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitExamplePlugin**.cs' - '**RevitExamplePlugin**.xaml' + - '**RevitExamplePlugin**.csproj' -env: - plugin-name: "RevitExamplePlugin" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitExamplePlugin" + secrets: inherit diff --git a/.github/workflows/publish.RevitExportSpecToExcel.yml b/.github/workflows/publish.RevitExportSpecToExcel.yml index 8e42a5324..e7fda195d 100644 --- a/.github/workflows/publish.RevitExportSpecToExcel.yml +++ b/.github/workflows/publish.RevitExportSpecToExcel.yml @@ -10,25 +10,9 @@ on: - '**RevitExportSpecToExcel**.xaml' - '**RevitExportSpecToExcel**.csproj' -env: - plugin-name: "RevitExportSpecToExcel" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitExportSpecToExcel" + secrets: inherit diff --git a/.github/workflows/publish.RevitFamilyExplorer.yml b/.github/workflows/publish.RevitFamilyExplorer.yml index c7fa35ac2..f611d54fd 100644 --- a/.github/workflows/publish.RevitFamilyExplorer.yml +++ b/.github/workflows/publish.RevitFamilyExplorer.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitFamilyExplorer**.cs' - '**RevitFamilyExplorer**.xaml' + - '**RevitFamilyExplorer**.csproj' -env: - plugin-name: "RevitFamilyExplorer" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitFamilyExplorer" + secrets: inherit diff --git a/.github/workflows/publish.RevitFamilyParameterAdder.yml b/.github/workflows/publish.RevitFamilyParameterAdder.yml index 12c218b43..1e955db8f 100644 --- a/.github/workflows/publish.RevitFamilyParameterAdder.yml +++ b/.github/workflows/publish.RevitFamilyParameterAdder.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitFamilyParameterAdder**.cs' - '**RevitFamilyParameterAdder**.xaml' + - '**RevitFamilyParameterAdder**.csproj' -env: - plugin-name: "RevitFamilyParameterAdder" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitFamilyParameterAdder" + secrets: inherit diff --git a/.github/workflows/publish.RevitFinishing.yml b/.github/workflows/publish.RevitFinishing.yml index cbff6d9e1..51c3e7969 100644 --- a/.github/workflows/publish.RevitFinishing.yml +++ b/.github/workflows/publish.RevitFinishing.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitFinishing**.cs' - '**RevitFinishing**.xaml' + - '**RevitFinishing**.csproj' -env: - plugin-name: "RevitFinishing" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitFinishing" + secrets: inherit diff --git a/.github/workflows/publish.RevitFinishingWalls.yml b/.github/workflows/publish.RevitFinishingWalls.yml index c0d1a6592..9408295a5 100644 --- a/.github/workflows/publish.RevitFinishingWalls.yml +++ b/.github/workflows/publish.RevitFinishingWalls.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitFinishingWalls**.cs' - '**RevitFinishingWalls**.xaml' - -env: - plugin-name: "RevitFinishingWalls" + - '**RevitFinishingWalls**.csproj' jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitFinishingWalls" + secrets: inherit diff --git a/.github/workflows/publish.RevitGenLookupTables.yml b/.github/workflows/publish.RevitGenLookupTables.yml index ae24f94f8..97ecec284 100644 --- a/.github/workflows/publish.RevitGenLookupTables.yml +++ b/.github/workflows/publish.RevitGenLookupTables.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitGenLookupTables**.cs' - '**RevitGenLookupTables**.xaml' + - '**RevitGenLookupTables**.csproj' -env: - plugin-name: "RevitGenLookupTables" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitGenLookupTables" + secrets: inherit diff --git a/.github/workflows/publish.RevitHideWorkset.yml b/.github/workflows/publish.RevitHideWorkset.yml index 5430f5a37..27fc7d98d 100644 --- a/.github/workflows/publish.RevitHideWorkset.yml +++ b/.github/workflows/publish.RevitHideWorkset.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitHideWorkset**.cs' - '**RevitHideWorkset**.xaml' + - '**RevitHideWorkset**.csproj' -env: - plugin-name: "RevitHideWorkset" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitHideWorkset" + secrets: inherit diff --git a/.github/workflows/publish.RevitIsolateByParameter.yml b/.github/workflows/publish.RevitIsolateByParameter.yml index 739ad295d..c47a8238a 100644 --- a/.github/workflows/publish.RevitIsolateByParameter.yml +++ b/.github/workflows/publish.RevitIsolateByParameter.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitIsolateByParameter**.cs' - '**RevitIsolateByParameter**.xaml' + - '**RevitIsolateByParameter**.csproj' -env: - plugin-name: "RevitIsolateByParameter" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitIsolateByParameter" + secrets: inherit diff --git a/.github/workflows/publish.RevitKrChecker.yml b/.github/workflows/publish.RevitKrChecker.yml index 1d20d1894..34f962291 100644 --- a/.github/workflows/publish.RevitKrChecker.yml +++ b/.github/workflows/publish.RevitKrChecker.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitKrChecker**.cs' - '**RevitKrChecker**.xaml' + - '**RevitKrChecker**.csproj' -env: - plugin-name: "RevitKrChecker" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitKrChecker" + secrets: inherit diff --git a/.github/workflows/publish.RevitLintelPlacement.yml b/.github/workflows/publish.RevitLintelPlacement.yml index 20bc9a046..7df7b16d7 100644 --- a/.github/workflows/publish.RevitLintelPlacement.yml +++ b/.github/workflows/publish.RevitLintelPlacement.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitLintelPlacement**.cs' - '**RevitLintelPlacement**.xaml' + - '**RevitLintelPlacement**.csproj' -env: - plugin-name: "RevitLintelPlacement" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitLintelPlacement" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitListOfSchedules.yml b/.github/workflows/publish.RevitListOfSchedules.yml index 49cc09e46..f7c3b3e4d 100644 --- a/.github/workflows/publish.RevitListOfSchedules.yml +++ b/.github/workflows/publish.RevitListOfSchedules.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitListOfSchedules**.cs' - '**RevitListOfSchedules**.xaml' + - '**RevitListOfSchedules**.csproj' -env: - plugin-name: "RevitListOfSchedules" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitListOfSchedules" + secrets: inherit diff --git a/.github/workflows/publish.RevitMarkAllDocuments.yml b/.github/workflows/publish.RevitMarkAllDocuments.yml index 5bfce3820..cfb381db3 100644 --- a/.github/workflows/publish.RevitMarkAllDocuments.yml +++ b/.github/workflows/publish.RevitMarkAllDocuments.yml @@ -10,25 +10,9 @@ on: - '**RevitMarkAllDocuments**.xaml' - '**RevitMarkAllDocuments**.csproj' -env: - plugin-name: "RevitMarkAllDocuments" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitMarkAllDocuments" + secrets: inherit diff --git a/.github/workflows/publish.RevitMarkPlacement.yml b/.github/workflows/publish.RevitMarkPlacement.yml index 8575c713a..de22b8f76 100644 --- a/.github/workflows/publish.RevitMarkPlacement.yml +++ b/.github/workflows/publish.RevitMarkPlacement.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitMarkPlacement**.cs' - '**RevitMarkPlacement**.xaml' + - '**RevitMarkPlacement**.csproj' -env: - plugin-name: "RevitMarkPlacement" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitMarkPlacement" + secrets: inherit diff --git a/.github/workflows/publish.RevitMarkingElements.yml b/.github/workflows/publish.RevitMarkingElements.yml index e3b67634b..b0936d0da 100644 --- a/.github/workflows/publish.RevitMarkingElements.yml +++ b/.github/workflows/publish.RevitMarkingElements.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitMarkingElements**.cs' - '**RevitMarkingElements**.xaml' + - '**RevitMarkingElements**.csproj' -env: - plugin-name: "RevitMarkingElements" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitMarkingElements" + secrets: inherit diff --git a/.github/workflows/publish.RevitMechanicalSpecification.yml b/.github/workflows/publish.RevitMechanicalSpecification.yml index 3ddedc839..f8813f66d 100644 --- a/.github/workflows/publish.RevitMechanicalSpecification.yml +++ b/.github/workflows/publish.RevitMechanicalSpecification.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitMechanicalSpecification**.cs' - '**RevitMechanicalSpecification**.xaml' + - '**RevitMechanicalSpecification**.csproj' -env: - plugin-name: "RevitMechanicalSpecification" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitMechanicalSpecification" + secrets: inherit diff --git a/.github/workflows/publish.RevitMepTotals.yml b/.github/workflows/publish.RevitMepTotals.yml index ca1efaaef..b02eadd37 100644 --- a/.github/workflows/publish.RevitMepTotals.yml +++ b/.github/workflows/publish.RevitMepTotals.yml @@ -10,25 +10,9 @@ on: - '**RevitMepTotals**.xaml' - '**RevitMepTotals**.csproj' -env: - plugin-name: "RevitMepTotals" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitMepTotals" + secrets: inherit diff --git a/.github/workflows/publish.RevitMirroredElements.yml b/.github/workflows/publish.RevitMirroredElements.yml index aecd2e831..3beb56153 100644 --- a/.github/workflows/publish.RevitMirroredElements.yml +++ b/.github/workflows/publish.RevitMirroredElements.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitMirroredElements**.cs' - '**RevitMirroredElements**.xaml' + - '**RevitMirroredElements**.csproj' -env: - plugin-name: "RevitMirroredElements" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitMirroredElements" + secrets: inherit diff --git a/.github/workflows/publish.RevitOpeningPlacement.yml b/.github/workflows/publish.RevitOpeningPlacement.yml index d7174ab4f..47037755f 100644 --- a/.github/workflows/publish.RevitOpeningPlacement.yml +++ b/.github/workflows/publish.RevitOpeningPlacement.yml @@ -9,30 +9,12 @@ on: - '**RevitClashes**.cs' - '**RevitOpeningPlacement**.cs' - '**RevitOpeningPlacement**.xaml' + - '**RevitOpeningPlacement**.csproj' -env: - plugin-name: "RevitOpeningPlacement" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitOpeningPlacement" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitOpeningSlopes.yml b/.github/workflows/publish.RevitOpeningSlopes.yml index 02f7cbdb7..18d2f7b68 100644 --- a/.github/workflows/publish.RevitOpeningSlopes.yml +++ b/.github/workflows/publish.RevitOpeningSlopes.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitOpeningSlopes**.cs' - '**RevitOpeningSlopes**.xaml' + - '**RevitOpeningSlopes**.csproj' -env: - plugin-name: "RevitOpeningSlopes" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitOpeningSlopes" + secrets: inherit diff --git a/.github/workflows/publish.RevitOverridingGraphicsInViews.yml b/.github/workflows/publish.RevitOverridingGraphicsInViews.yml index 9be1d896c..7889dde09 100644 --- a/.github/workflows/publish.RevitOverridingGraphicsInViews.yml +++ b/.github/workflows/publish.RevitOverridingGraphicsInViews.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitOverridingGraphicsInViews**.cs' - '**RevitOverridingGraphicsInViews**.xaml' + - '**RevitOverridingGraphicsInViews**.csproj' -env: - plugin-name: "RevitOverridingGraphicsInViews" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitOverridingGraphicsInViews" + secrets: inherit diff --git a/.github/workflows/publish.RevitPackageDocumentation.yml b/.github/workflows/publish.RevitPackageDocumentation.yml index 829d1bbad..c1a540471 100644 --- a/.github/workflows/publish.RevitPackageDocumentation.yml +++ b/.github/workflows/publish.RevitPackageDocumentation.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitPackageDocumentation**.cs' - '**RevitPackageDocumentation**.xaml' + - '**RevitPackageDocumentation**.csproj' -env: - plugin-name: "RevitPackageDocumentation" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitPackageDocumentation" + secrets: inherit diff --git a/.github/workflows/publish.RevitParamsChecker.yml b/.github/workflows/publish.RevitParamsChecker.yml index e1c34d13f..fd61fe78f 100644 --- a/.github/workflows/publish.RevitParamsChecker.yml +++ b/.github/workflows/publish.RevitParamsChecker.yml @@ -10,25 +10,9 @@ on: - '**RevitParamsChecker**.xaml' - '**RevitParamsChecker**.csproj' -env: - plugin-name: "RevitParamsChecker" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitParamsChecker" + secrets: inherit diff --git a/.github/workflows/publish.RevitPlatformSettings.yml b/.github/workflows/publish.RevitPlatformSettings.yml index fdb381cd7..ef3d59030 100644 --- a/.github/workflows/publish.RevitPlatformSettings.yml +++ b/.github/workflows/publish.RevitPlatformSettings.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitPlatformSettings**.cs' - '**RevitPlatformSettings**.xaml' + - '**RevitPlatformSettings**.csproj' -env: - plugin-name: "RevitPlatformSettings" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitPlatformSettings" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitPlugins.yml b/.github/workflows/publish.RevitPlugins.yml index fd373c835..2a1c0e1a9 100644 --- a/.github/workflows/publish.RevitPlugins.yml +++ b/.github/workflows/publish.RevitPlugins.yml @@ -4,32 +4,15 @@ on: workflow_dispatch: pull_request: types: [ closed, synchronize, review_requested ] - branches: [main, master] + branches: [ main, master ] paths: - '**RevitPlugins**.cs' - '**RevitPlugins**.xaml' - '**RevitPlugins**.csproj' -env: - plugin-name: "RevitPlugins" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 10.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - \ No newline at end of file + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitPlugins" + secrets: inherit diff --git a/.github/workflows/publish.RevitPylonDocumentation.yml b/.github/workflows/publish.RevitPylonDocumentation.yml index 8767415ec..260c62ae2 100644 --- a/.github/workflows/publish.RevitPylonDocumentation.yml +++ b/.github/workflows/publish.RevitPylonDocumentation.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitPylonDocumentation**.cs' - '**RevitPylonDocumentation**.xaml' + - '**RevitPylonDocumentation**.csproj' -env: - plugin-name: "RevitPylonDocumentation" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitPylonDocumentation" + secrets: inherit diff --git a/.github/workflows/publish.RevitPylonLoadAreas.yml b/.github/workflows/publish.RevitPylonLoadAreas.yml index 331c5cfde..eb8b0a7d4 100644 --- a/.github/workflows/publish.RevitPylonLoadAreas.yml +++ b/.github/workflows/publish.RevitPylonLoadAreas.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitPylonLoadAreas**.cs' - '**RevitPylonLoadAreas**.xaml' - -env: - plugin-name: "RevitPylonLoadAreas" + - '**RevitPylonLoadAreas**.csproj' jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitPylonLoadAreas" + secrets: inherit diff --git a/.github/workflows/publish.RevitRefreshLinks.yml b/.github/workflows/publish.RevitRefreshLinks.yml index 1e10f49f3..109f61dc0 100644 --- a/.github/workflows/publish.RevitRefreshLinks.yml +++ b/.github/workflows/publish.RevitRefreshLinks.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitRefreshLinks**.cs' - '**RevitRefreshLinks**.xaml' + - '**RevitRefreshLinks**.csproj' -env: - plugin-name: "RevitRefreshLinks" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitRefreshLinks" + secrets: inherit diff --git a/.github/workflows/publish.RevitReinforcementCoefficient.yml b/.github/workflows/publish.RevitReinforcementCoefficient.yml index 3bc13e97e..aa4b86f90 100644 --- a/.github/workflows/publish.RevitReinforcementCoefficient.yml +++ b/.github/workflows/publish.RevitReinforcementCoefficient.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitReinforcementCoefficient**.cs' - '**RevitReinforcementCoefficient**.xaml' + - '**RevitReinforcementCoefficient**.csproj' -env: - plugin-name: "RevitReinforcementCoefficient" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitReinforcementCoefficient" + secrets: inherit diff --git a/.github/workflows/publish.RevitRemoveRoomTags.yml b/.github/workflows/publish.RevitRemoveRoomTags.yml index 4f7a811f3..307e3e114 100644 --- a/.github/workflows/publish.RevitRemoveRoomTags.yml +++ b/.github/workflows/publish.RevitRemoveRoomTags.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitRemoveRoomTags**.cs' - '**RevitRemoveRoomTags**.xaml' + - '**RevitRemoveRoomTags**.csproj' -env: - plugin-name: "RevitRemoveRoomTags" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitRemoveRoomTags" + secrets: inherit diff --git a/.github/workflows/publish.RevitRoomAnnotations.yml b/.github/workflows/publish.RevitRoomAnnotations.yml index 89149e645..ffbfea03c 100644 --- a/.github/workflows/publish.RevitRoomAnnotations.yml +++ b/.github/workflows/publish.RevitRoomAnnotations.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitRoomAnnotations**.cs' - '**RevitRoomAnnotations**.xaml' + - '**RevitRoomAnnotations**.csproj' -env: - plugin-name: "RevitRoomAnnotations" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitRoomAnnotations" + secrets: inherit diff --git a/.github/workflows/publish.RevitRoomExtrusion.yml b/.github/workflows/publish.RevitRoomExtrusion.yml index e35942897..f445e84c3 100644 --- a/.github/workflows/publish.RevitRoomExtrusion.yml +++ b/.github/workflows/publish.RevitRoomExtrusion.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitRoomExtrusion**.cs' - '**RevitRoomExtrusion**.xaml' + - '**RevitRoomExtrusion**.csproj' -env: - plugin-name: "RevitRoomExtrusion" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitRoomExtrusion" + secrets: inherit diff --git a/.github/workflows/publish.RevitRoomTagPlacement.yml b/.github/workflows/publish.RevitRoomTagPlacement.yml index a57661a32..8cceadec3 100644 --- a/.github/workflows/publish.RevitRoomTagPlacement.yml +++ b/.github/workflows/publish.RevitRoomTagPlacement.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitRoomTagPlacement**.cs' - '**RevitRoomTagPlacement**.xaml' + - '**RevitRoomTagPlacement**.csproj' -env: - plugin-name: "RevitRoomTagPlacement" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitRoomTagPlacement" + secrets: inherit diff --git a/.github/workflows/publish.RevitRooms.yml b/.github/workflows/publish.RevitRooms.yml index 51e893307..ecc31ab06 100644 --- a/.github/workflows/publish.RevitRooms.yml +++ b/.github/workflows/publish.RevitRooms.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitRooms**.cs' - '**RevitRooms**.xaml' + - '**RevitRooms**.csproj' -env: - plugin-name: "RevitRooms" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitRooms" + secrets: inherit diff --git a/.github/workflows/publish.RevitRoundingOfAreas.yml b/.github/workflows/publish.RevitRoundingOfAreas.yml index b52d46d6a..934e9c62b 100644 --- a/.github/workflows/publish.RevitRoundingOfAreas.yml +++ b/.github/workflows/publish.RevitRoundingOfAreas.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitRoundingOfAreas**.cs' - '**RevitRoundingOfAreas**.xaml' + - '**RevitRoundingOfAreas**.csproj' -env: - plugin-name: "RevitRoundingOfAreas" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitRoundingOfAreas" + secrets: inherit diff --git a/.github/workflows/publish.RevitRsnManager.yml b/.github/workflows/publish.RevitRsnManager.yml index 3b761a87d..439c668ea 100644 --- a/.github/workflows/publish.RevitRsnManager.yml +++ b/.github/workflows/publish.RevitRsnManager.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitRsnManager**.cs' - '**RevitRsnManager**.xaml' + - '**RevitRsnManager**.csproj' -env: - plugin-name: "RevitRsnManager" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitRsnManager" + secrets: inherit diff --git a/.github/workflows/publish.RevitScheduleImport.yml b/.github/workflows/publish.RevitScheduleImport.yml index 742de16df..6c4b279a2 100644 --- a/.github/workflows/publish.RevitScheduleImport.yml +++ b/.github/workflows/publish.RevitScheduleImport.yml @@ -10,25 +10,9 @@ on: - '**RevitScheduleImport**.xaml' - '**RevitScheduleImport**.csproj' -env: - plugin-name: "RevitScheduleImport" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitScheduleImport" + secrets: inherit diff --git a/.github/workflows/publish.RevitSectionsConstructor.yml b/.github/workflows/publish.RevitSectionsConstructor.yml index e5f9d6e6f..b42ccf78c 100644 --- a/.github/workflows/publish.RevitSectionsConstructor.yml +++ b/.github/workflows/publish.RevitSectionsConstructor.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitSectionsConstructor**.cs' - '**RevitSectionsConstructor**.xaml' + - '**RevitSectionsConstructor**.csproj' -env: - plugin-name: "RevitSectionsConstructor" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitSectionsConstructor" + secrets: inherit diff --git a/.github/workflows/publish.RevitServerFolders.yml b/.github/workflows/publish.RevitServerFolders.yml index df0d6423f..3902af6a0 100644 --- a/.github/workflows/publish.RevitServerFolders.yml +++ b/.github/workflows/publish.RevitServerFolders.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitServerFolders**.cs' - '**RevitServerFolders**.xaml' + - '**RevitServerFolders**.csproj' -env: - plugin-name: "RevitServerFolders" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitServerFolders" + secrets: inherit diff --git a/.github/workflows/publish.RevitSetCoordParams.yml b/.github/workflows/publish.RevitSetCoordParams.yml index 7b77e6494..94a3d74bd 100644 --- a/.github/workflows/publish.RevitSetCoordParams.yml +++ b/.github/workflows/publish.RevitSetCoordParams.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitSetCoordParams**.cs' - '**RevitSetCoordParams**.xaml' + - '**RevitSetCoordParams**.csproj' -env: - plugin-name: "RevitSetCoordParams" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitSetCoordParams" + secrets: inherit diff --git a/.github/workflows/publish.RevitSetLevelSection.yml b/.github/workflows/publish.RevitSetLevelSection.yml index 6350c9218..f3db624c4 100644 --- a/.github/workflows/publish.RevitSetLevelSection.yml +++ b/.github/workflows/publish.RevitSetLevelSection.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitSetLevelSection**.cs' - '**RevitSetLevelSection**.xaml' + - '**RevitSetLevelSection**.csproj' -env: - plugin-name: "RevitSetLevelSection" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitSetLevelSection" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitShakeSpecs.yml b/.github/workflows/publish.RevitShakeSpecs.yml index 7a53d4f67..604495ff2 100644 --- a/.github/workflows/publish.RevitShakeSpecs.yml +++ b/.github/workflows/publish.RevitShakeSpecs.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitShakeSpecs**.cs' - '**RevitShakeSpecs**.xaml' + - '**RevitShakeSpecs**.csproj' -env: - plugin-name: "RevitShakeSpecs" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitShakeSpecs" + secrets: inherit diff --git a/.github/workflows/publish.RevitSleeves.yml b/.github/workflows/publish.RevitSleeves.yml index 2ba9059e2..487db491f 100644 --- a/.github/workflows/publish.RevitSleeves.yml +++ b/.github/workflows/publish.RevitSleeves.yml @@ -9,26 +9,11 @@ on: - '**RevitClashes**.cs' - '**RevitSleeves**.cs' - '**RevitSleeves**.xaml' + - '**RevitSleeves**.csproj' -env: - plugin-name: "RevitSleeves" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitSleeves" + secrets: inherit diff --git a/.github/workflows/publish.RevitSplitMepCurve.yml b/.github/workflows/publish.RevitSplitMepCurve.yml index b36efc605..e45b34c7c 100644 --- a/.github/workflows/publish.RevitSplitMepCurve.yml +++ b/.github/workflows/publish.RevitSplitMepCurve.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitSplitMepCurve**.cs' - '**RevitSplitMepCurve**.xaml' + - '**RevitSplitMepCurve**.csproj' -env: - plugin-name: "RevitSplitMepCurve" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitSplitMepCurve" + secrets: inherit diff --git a/.github/workflows/publish.RevitSuperfilter.yml b/.github/workflows/publish.RevitSuperfilter.yml index 0260f8121..baae2870d 100644 --- a/.github/workflows/publish.RevitSuperfilter.yml +++ b/.github/workflows/publish.RevitSuperfilter.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitSuperfilter**.cs' - '**RevitSuperfilter**.xaml' + - '**RevitSuperfilter**.csproj' -env: - plugin-name: "RevitSuperfilter" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitSuperfilter" + use-devexpress: true + secrets: inherit diff --git a/.github/workflows/publish.RevitUnmodelingMep.yml b/.github/workflows/publish.RevitUnmodelingMep.yml index 31d79c7f9..345ae6bf1 100644 --- a/.github/workflows/publish.RevitUnmodelingMep.yml +++ b/.github/workflows/publish.RevitUnmodelingMep.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitUnmodelingMep**.cs' - '**RevitUnmodelingMep**.xaml' + - '**RevitUnmodelingMep**.csproj' -env: - plugin-name: "RevitUnmodelingMep" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitUnmodelingMep" + secrets: inherit diff --git a/.github/workflows/publish.RevitValueModifier.yml b/.github/workflows/publish.RevitValueModifier.yml index 89fb5331f..c75352ba1 100644 --- a/.github/workflows/publish.RevitValueModifier.yml +++ b/.github/workflows/publish.RevitValueModifier.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitValueModifier**.cs' - '**RevitValueModifier**.xaml' + - '**RevitValueModifier**.csproj' -env: - plugin-name: "RevitValueModifier" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitValueModifier" + secrets: inherit diff --git a/.github/workflows/publish.RevitVolumeModifier.yml b/.github/workflows/publish.RevitVolumeModifier.yml index 9d3f28cf1..5c017d7e5 100644 --- a/.github/workflows/publish.RevitVolumeModifier.yml +++ b/.github/workflows/publish.RevitVolumeModifier.yml @@ -8,26 +8,11 @@ on: paths: - '**RevitVolumeModifier**.cs' - '**RevitVolumeModifier**.xaml' + - '**RevitVolumeModifier**.csproj' -env: - plugin-name: "RevitVolumeModifier" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitVolumeModifier" + secrets: inherit diff --git a/.github/workflows/publish.RevitVolumeOfWork.yml b/.github/workflows/publish.RevitVolumeOfWork.yml index f6bb20a24..e561dda0c 100644 --- a/.github/workflows/publish.RevitVolumeOfWork.yml +++ b/.github/workflows/publish.RevitVolumeOfWork.yml @@ -8,30 +8,11 @@ on: paths: - '**RevitVolumeOfWork**.cs' - '**RevitVolumeOfWork**.xaml' + - '**RevitVolumeOfWork**.csproj' -env: - plugin-name: "RevitVolumeOfWork" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitVolumeOfWork" + secrets: inherit diff --git a/.github/workflows/publish.RevitWindowGapPlacement.yml b/.github/workflows/publish.RevitWindowGapPlacement.yml index 06f4ce506..e87c766b6 100644 --- a/.github/workflows/publish.RevitWindowGapPlacement.yml +++ b/.github/workflows/publish.RevitWindowGapPlacement.yml @@ -8,30 +8,12 @@ on: paths: - '**RevitWindowGapPlacement**.cs' - '**RevitWindowGapPlacement**.xaml' + - '**RevitWindowGapPlacement**.csproj' -env: - plugin-name: "RevitWindowGapPlacement" - jobs: build: - name: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Install the .NET workload - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - # Add DevExrepress package source: https://nuget.devexpress.com/ - - name: Add DevExpress package source - run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_FEED_AUTHORIZATION_KEY }} - - - name: Run './build.cmd ' - run: ./build.cmd publish --profile ${{ env.plugin-name }} --pull-request-merged ${{ github.event.pull_request.merged }} --extensions-app-token ${{ secrets.EXTENSIONS_APP_TOKEN }} --revit-plugins-app-token ${{ secrets.REVIT_PLUGINS_APP_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/build-plugin.yml + with: + plugin-name: "RevitWindowGapPlacement" + use-devexpress: true + secrets: inherit diff --git a/build/Build.CreateWorkflow.cs b/build/Build.CreateWorkflow.cs index 11c10a26c..47bc54f45 100644 --- a/build/Build.CreateWorkflow.cs +++ b/build/Build.CreateWorkflow.cs @@ -1,4 +1,7 @@ -using Nuke.Common; +using System; +using System.Text.RegularExpressions; + +using Nuke.Common; using Nuke.Common.IO; using Nuke.Components; @@ -12,8 +15,19 @@ partial class Build { Log.Debug("TemplateFile: {TemplateFile}", Params.TemplateWorkflowFile); Log.Debug("PluginScriptFile: {PluginScriptFile}", Params.PluginWorkflowFile); + bool useDevExpress = string.Equals(Params.PluginType?.ToString(), + PluginType.DevExpress.ToString(), StringComparison.OrdinalIgnoreCase); + string content = Params.TemplateWorkflowFile.ReadAllText() .Replace("${{ gen.plugin_name }}", PluginName); + + // Параметр use-devexpress указывается только у плагинов с DevExpress, + // у остальных строка удаляется, чтобы в workflow работало значение false по умолчанию. + content = useDevExpress + ? content.Replace("${{ gen.use_devexpress }}", "true") + : Regex.Replace(content, @"^.*\$\{\{ gen\.use_devexpress \}\}.*\r?\n", string.Empty, + RegexOptions.Multiline); + Params.PluginWorkflowFile.WriteAllText(content); }); }