Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
iammukeshm committed Aug 20, 2024
1 parent 4a6e5ff commit 8bc9280
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 16 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/blazor.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
name: .NET 8 Blazor
name: Blazor

on:
workflow_dispatch:

push:
branches: ["main"]
paths: ["src/apps/blazor/**"]
branches:
- main
paths:
- "src/apps/blazor/**"
- "src/Directory.Packages.props"

pull_request:
branches: ["main"]
paths: ["src/apps/blazor/**"]
branches:
- main
paths:
- "src/apps/blazor/**"
- "src/Directory.Packages.props"

jobs:
build:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/package.yml → .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
name: Package
name: Publish NuGet
on:
push:
branches:
- main
paths:
- 'FSH.StarterKit.nuspec'
- "FSH.StarterKit.nuspec"
jobs:
publish:
name: publish nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: nuget/setup-nuget@v1
- uses: nuget/setup-nuget@v2
name: setup nuget
with:
nuget-version: '6.x'
nuget-version: "latest"
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: generate package
run: nuget pack FSH.StarterKit.nuspec -NoDefaultExcludes
run: nuget pack FSH.StarterKit.nuspec -NoDefaultExcludes
- name: publish package
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} -SkipDuplicate
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -SkipDuplicate
16 changes: 11 additions & 5 deletions .github/workflows/webapi.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
name: .NET 8 Web API
name: WebAPI

on:
workflow_dispatch:

push:
branches: ["main"]
paths: ["src/api/**"]
branches:
- main
paths:
- "src/api/**"
- "src/Directory.Packages.props"

pull_request:
branches: ["main"]
paths: ["src/api/**"]
branches:
- main
paths:
- "src/api/**"
- "src/Directory.Packages.props"

jobs:
build:
Expand Down

0 comments on commit 8bc9280

Please sign in to comment.