-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 chore: add push-nuget workflows and update build workflow (#2002)
- Loading branch information
Showing
4 changed files
with
60 additions
and
30 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
.github/workflows/pr-docs-next.yml → .github/workflows/build.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Push nuget package manually | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'The version of the package, no "v" prefix' | ||
required: true | ||
default: '1.0.0' | ||
|
||
jobs: | ||
push-nuget-manually: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: git pull | ||
uses: actions/checkout@v3 | ||
- name: setting dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: | | ||
8.0.x | ||
7.0.x | ||
6.0.x | ||
include-prerelease: true | ||
- name: build | ||
run: dotnet build src/Masa.Blazor.SomethingSkia/Masa.Blazor.SomethingSkia.csproj -c Release /p:ContinuousIntegrationBuild=true | ||
- name: pack Masa.Blazor | ||
run: dotnet pack src/Masa.Blazor/Masa.Blazor.csproj --no-build --include-symbols -c Release -p:PackageVersion=${{github.event.inputs.version}} | ||
- name: pack Masa.Blazor.SomethingSkia | ||
run: dotnet pack src/Masa.Blazor.SomethingSkia/Masa.Blazor.SomethingSkia.csproj --no-build --include-symbols -c Release -p:PackageVersion=${{github.event.inputs.version}} | ||
- name: package push | ||
run: dotnet nuget push "**/*.symbols.nupkg" --skip-duplicate -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Push nuget package on release | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
push-nuget-on-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: git pull | ||
uses: actions/checkout@v3 | ||
- name: setting dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: | | ||
8.0.x | ||
7.0.x | ||
6.0.x | ||
include-prerelease: true | ||
- name: build | ||
run: dotnet build src/Masa.Blazor.SomethingSkia/Masa.Blazor.SomethingSkia.csproj -c Release /p:ContinuousIntegrationBuild=true | ||
- name: pack Masa.Blazor | ||
run: dotnet pack src/Masa.Blazor/Masa.Blazor.csproj --no-build --include-symbols -c Release -p:PackageVersion=$GITHUB_REF_NAME | ||
- name: pack Masa.Blazor.SomethingSkia | ||
run: dotnet pack src/Masa.Blazor.SomethingSkia/Masa.Blazor.SomethingSkia.csproj --no-build --include-symbols -c Release -p:PackageVersion=$GITHUB_REF_NAME | ||
- name: package push | ||
run: dotnet nuget push "**/*.symbols.nupkg" --skip-duplicate -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json |