Skip to content

Commit fbc0d2d

Browse files
authored
Refactor workflows
1 parent a5bd766 commit fbc0d2d

4 files changed

Lines changed: 39 additions & 114 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, dev ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
ci:
10+
name: Continuous Integration
11+
uses: bigbang1112/workflows/.github/workflows/ci.yml@main
12+
with:
13+
dotnet-version: |
14+
10.x.x
15+
9.x.x
16+
8.x.x

.github/workflows/dotnet.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish NuGet
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write # important for release description edit and asset upload
10+
packages: write
11+
12+
jobs:
13+
publish:
14+
name: Publish NuGet
15+
uses: bigbang1112/workflows/.github/workflows/publish-nuget.yml@main
16+
with:
17+
dotnet-version: |
18+
10.x.x
19+
9.x.x
20+
8.x.x
21+
project-path: MinimalXmlReader
22+
secrets:
23+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

.github/workflows/publish.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)