Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 5 additions & 20 deletions .github/templates/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
51 changes: 51 additions & 0 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
@@ -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 }}
25 changes: 5 additions & 20 deletions .github/workflows/publish.RevitApartmentPlans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
29 changes: 5 additions & 24 deletions .github/workflows/publish.RevitArchitecturalDocumentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
29 changes: 5 additions & 24 deletions .github/workflows/publish.RevitAreaBoundaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
29 changes: 5 additions & 24 deletions .github/workflows/publish.RevitAxonometryViews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
30 changes: 6 additions & 24 deletions .github/workflows/publish.RevitBatchPrint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
24 changes: 4 additions & 20 deletions .github/workflows/publish.RevitBatchSpecExport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
25 changes: 5 additions & 20 deletions .github/workflows/publish.RevitBuildCoordVolumes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
30 changes: 6 additions & 24 deletions .github/workflows/publish.RevitCheckingLevels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
29 changes: 5 additions & 24 deletions .github/workflows/publish.RevitClashDetective.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading