Skip to content

Commit 3b6008a

Browse files
committed
Update publish script
1 parent dd91f25 commit 3b6008a

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Setup .NET Core
17-
uses: actions/setup-dotnet@v1
17+
uses: actions/setup-dotnet@v4
1818
with:
1919
dotnet-version: 9.0.300
2020
- name: Restore tools

.github/workflows/publish.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@ jobs:
1111
timeout-minutes: 10
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v1
14+
uses: actions/checkout@v4
1515

1616
- name: Setup .NET Core
17-
uses: actions/setup-dotnet@v1
17+
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: 3.1.301
19+
dotnet-version: 9.0.300
2020

21-
- name: Setup dotnet manifest
22-
run: dotnet new tool-manifest
23-
- name: Setup paket
24-
run: dotnet tool install Paket
25-
- name: Dotnet Pack
26-
run: dotnet pack -c release -p:PackageVersion=${GITHUB_REF##*/v}
21+
- name: Restore tools
22+
run: dotnet tool restore
23+
- name: Install dependencies
24+
run: dotnet paket restore
25+
- name: Build
26+
run: dotnet build --configuration Release
27+
- name: Pack
28+
run: dotnet pack -c Release -p:PackageVersion=${GITHUB_REF##*/v}
2729

2830
- name: Push Feliz.ViewEngine Nuget
2931
run: dotnet nuget push src/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)