Skip to content

Commit 980c438

Browse files
committed
nice actions
1 parent e5dbe7c commit 980c438

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

.github/workflows/dotnet-core-ubuntu.yml renamed to .github/workflows/build-all.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,25 @@ env:
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
1413

1514
steps:
16-
1715
- name: Checkout the repository
18-
uses: actions/checkout@v1
16+
uses: actions/checkout@v2
1917

2018
- name: Setup .NET Core
2119
uses: actions/setup-dotnet@v1
2220
with:
2321
dotnet-version: 3.1.200
2422

2523
- name: Build with dotnet
26-
run: dotnet build -c Release .\\BlazorLazyLoading.sln
24+
run: dotnet build -c Release BlazorLazyLoading.sln
2725

2826
- name: Test with dotnet
29-
run: dotnet test .\\BlazorLazyLoading.sln
27+
run: dotnet test BlazorLazyLoading.sln
3028

3129
- name: Pack with dotnet
32-
run: dotnet pack -c Release .\\BlazorLazyLoading.sln
30+
run: dotnet pack -c Release BlazorLazyLoading.sln
3331

3432
#- name: Push package to NuGet
35-
# run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
33+
# run: dotnet nuget push output/**/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

.github/workflows/master.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build all (master)
2+
3+
on:
4+
release:
5+
types: [published, created, edited]
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Build All
15+
uses: ./.github/actions/build-all
16+
17+
#- name: Push package to NuGet
18+
# run: dotnet nuget push output/**/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)