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
37 changes: 12 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:
- dev

jobs:
ubuntu-latest:
name: ubuntu-latest
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -37,15 +21,18 @@ jobs:
with:
dotnet-version: |
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 src/MudBlazor.Templates.sln
- name: Build
run: dotnet build src/MudBlazor.Templates.sln --configuration Release --no-restore
- name: Pack
run: dotnet pack src/MudBlazor.Templates.sln --configuration Release --no-build --output artifacts/packages
- name: 'Publish: packages'
uses: actions/upload-artifact@v4
with:
Expand Down
47 changes: 19 additions & 28 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,31 +6,38 @@ 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:
fetch-depth: 0

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
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 src/MudBlazor.Templates.sln --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.

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