Skip to content

Commit 28af6d1

Browse files
author
anunes
committed
ci: segregate actions
1 parent 69a7678 commit 28af6d1

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,8 @@ jobs:
1919
with:
2020
dotnet-version: 9.0.x
2121

22-
- name: Buid an example project
23-
run: |
24-
dotnet new install .\
25-
dotnet new mudblazor-server-solution -n AppName -o ./app
26-
dotnet build ./app/AppName.sln
2722
- name: pack
2823
run: dotnet pack --output ./nupkg
2924

3025
- name: Push to nuget
3126
run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
32-

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: test-template
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test-template:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v4
16+
with:
17+
dotnet-version: 9.0.x
18+
19+
- name: Test template build
20+
run: |
21+
dotnet new install .\
22+
dotnet new mudblazor-server-solution -n AppName -o ./app
23+
dotnet build ./app/AppName.sln

0 commit comments

Comments
 (0)