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
41 changes: 16 additions & 25 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
# ------------------------------------------------------------------------------
# <auto-generated>
#
# This code was generated.
#
# - To turn off auto-generation set:
#
# [GitHubActions (AutoGenerate = false)]
#
# - To trigger manual generation invoke:
#
# nuke --generate-configuration GitHubActions_continuous --host GitHubActions
#
# </auto-generated>
# ------------------------------------------------------------------------------

name: continuous

on:
Expand All @@ -25,8 +9,8 @@ on:
- main

jobs:
ubuntu-latest:
name: ubuntu-latest
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -38,15 +22,22 @@ jobs:
dotnet-version: |
9.0.x
10.0.x
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
- name: 'Cache: ~/.nuget/packages'
uses: actions/cache@v4
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Run: Compile, Pack'
run: ./build.cmd Compile Pack
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: ${{ runner.os }}-nuget-
- name: Restore
run: dotnet restore MudBlazor.ThemeManager.slnx
- name: Verify formatting
run: |
dotnet format whitespace MudBlazor.ThemeManager.slnx --verify-no-changes
dotnet format style MudBlazor.ThemeManager.slnx --verify-no-changes
- name: Build
run: dotnet build MudBlazor.ThemeManager.slnx --configuration Release --no-restore
- name: Pack
run: dotnet pack MudBlazor.ThemeManager.slnx --configuration Release --no-build --output artifacts/packages
- name: 'Publish: packages'
uses: actions/upload-artifact@v4
with:
Expand Down
46 changes: 19 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
# ------------------------------------------------------------------------------
# <auto-generated>
#
# This code was generated.
#
# - To turn off auto-generation set:
#
# [GitHubActions (AutoGenerate = false)]
#
# - To trigger manual generation invoke:
#
# nuke --generate-configuration GitHubActions_release --host GitHubActions
#
# </auto-generated>
# ------------------------------------------------------------------------------

name: release

on:
Expand All @@ -22,9 +6,12 @@ on:
- '\d+\.\d+\.\d+'

jobs:
ubuntu-latest:
name: ubuntu-latest
release:
name: release
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -35,18 +22,23 @@ jobs:
dotnet-version: |
9.0.x
10.0.x
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
- name: 'Cache: ~/.nuget/packages'
uses: actions/cache@v4
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Run: Push, PushGithubNuget'
run: ./build.cmd Push PushGithubNuget
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: ${{ runner.os }}-nuget-
- name: Pack
run: dotnet pack MudBlazor.ThemeManager.slnx --configuration Release --output artifacts/packages
- name: 'Push: nuget.org'
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: dotnet nuget push "artifacts/packages/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "$NUGET_KEY" --skip-duplicate
- name: 'Push: GitHub Packages'
env:
NugetKey: ${{ secrets.NUGET_KEY }}
GithubToken: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_SOURCE: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
run: dotnet nuget push "artifacts/packages/*.nupkg" --source "$NUGET_SOURCE" --api-key "$GITHUB_TOKEN" --skip-duplicate
- name: 'Publish: packages'
uses: actions/upload-artifact@v4
with:
Expand Down
136 changes: 0 additions & 136 deletions .nuke/build.schema.json

This file was deleted.

4 changes: 0 additions & 4 deletions .nuke/parameters.json

This file was deleted.

1 change: 0 additions & 1 deletion MudBlazor.ThemeManager.slnx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<Solution>
<Project Path="src/MudBlazor.ThemeManager/MudBlazor.ThemeManager.csproj" />
<Project Path="src/MudBlazor.ThemeManager.TestApp/MudBlazor.ThemeManager.TestApp.csproj" />
<Project Path="build/_build.csproj" />
</Solution>
7 changes: 0 additions & 7 deletions build.cmd

This file was deleted.

74 changes: 0 additions & 74 deletions build.ps1

This file was deleted.

Loading
Loading