Skip to content

Commit

Permalink
Update pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
pomianowski committed Aug 5, 2023
1 parent ec064ea commit 2dec143
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 828 deletions.
33 changes: 16 additions & 17 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@
version: 2

updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
target-branch: "development"
directory: "/"
schedule:
interval: "daily"
labels:
- "Actions"

# Maintain dependencies for nuget
- package-ecosystem: "nuget"
target-branch: "development"
directory: "src"
schedule:
interval: "daily"
labels:
- "NuGet"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
target-branch: "development"
directory: "/"
schedule:
interval: "daily"
labels:
- "Actions"
# Maintain dependencies for nuget
- package-ecosystem: "nuget"
target-branch: "development"
directory: "src"
schedule:
interval: "daily"
labels:
- "NuGet"
2 changes: 1 addition & 1 deletion .github/workflows/wpf-ui-cd-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: wpfui-pr-docs
name: wpf-ui-cd-docs

on:
push:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/wpf-ui-cd-extension.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: wpf-ui-cd-extension

on:
push:
branches: [main, development]

workflow_dispatch:

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: microsoft/setup-msbuild@v1.3
with:
msbuild-architecture: x64
- uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}

- name: Restore dependencies
run: nuget restore Wpf.Ui.sln

- name: Build the solution
run: msbuild src\Wpf.Ui.Extension\Wpf.Ui.Extension.csproj -p:Configuration=Release -p:RestorePackages=false -p:Platform="Any CPU" -p:GITHUB_ACTIONS=True -p:ContinuousIntegrationBuild=true -m -graph -isolate

- uses: actions/upload-artifact@v2
with:
name: my-artifact
path: src\Wpf.Ui.Extension\bin\Release\Wpf.Ui.Extension.vsix
17 changes: 12 additions & 5 deletions .github/workflows/wpf-ui-cd-nuget.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: wpfui-pr-deploy
name: wpf-ui-cd-nuget

on:
push:
Expand All @@ -17,12 +17,19 @@ jobs:
- uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: Setup .NET Core SDK 6.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x

- name: Install dependencies
run: dotnet restore

- name: Restore dependencies
run: nuget restore Wpf.Ui.sln
- name: Build
run: dotnet build src\Wpf.Ui\Wpf.Ui.csproj --configuration Release --no-restore

- name: Build the solution
run: msbuild src\Wpf.Ui\Wpf.Ui.csproj -p:Configuration=Release -p:Platform="Any CPU" -p:GITHUB_ACTIONS=True -p:ContinuousIntegrationBuild=true -m -graph -isolate
- name: Build
run: dotnet build src\Wpf.Ui.Tray\Wpf.Ui.Tray.csproj --configuration Release --no-restore

- name: Publish the package to NuGet.org
run: nuget push **\*.nupkg -NonInteractive -SkipDuplicate -Source 'https://api.nuget.org/v3/index.json'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wpf-ui-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: wpfui-labeler
name: wpf-ui-labeler

on:
- pull_request_target
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wpf-ui-lock.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: wpfui-lock
name: wpf-ui-lock

on:
schedule:
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/wpf-ui-pr-validator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: wpfui-pr-validator
name: wpf-ui-pr-validator

on:
pull_request:
Expand All @@ -19,9 +19,22 @@ jobs:
- uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: Setup .NET Core SDK 6.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build src\Wpf.Ui\Wpf.Ui.csproj --configuration Release --no-restore

- name: Build
run: dotnet build src\Wpf.Ui.Tray\Wpf.Ui.Tray.csproj --configuration Release --no-restore

- name: Restore dependencies
run: nuget restore Wpf.Ui.sln
- name: Build
run: dotnet build src\Wpf.Ui.ToastNotifications\Wpf.Ui.ToastNotifications.csproj --configuration Release --no-restore

- name: Build the solution
run: msbuild src\Wpf.Ui.Gallery\Wpf.Ui.Gallery.csproj -p:Configuration=Release -p:Platform="Any CPU" -p:GITHUB_ACTIONS=True -p:ContinuousIntegrationBuild=true -m -graph -isolate
- name: Build
run: dotnet build src\Wpf.Ui.Gallery\Wpf.Ui.Gallery.csproj --configuration Release --no-restore
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<PropertyGroup>
<PackageVersion>$(Version)</PackageVersion>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageLicense>https://raw.githubusercontent.com/lepoco/wpfui/main/LICENSE</PackageLicense>
<PackageProjectUrl>https://github.com/lepoco/wpfui</PackageProjectUrl>
Expand Down
11 changes: 0 additions & 11 deletions src/Wpf.Ui/Notifications/Toast.cs

This file was deleted.

Loading

0 comments on commit 2dec143

Please sign in to comment.