Skip to content

Commit 5ad6293

Browse files
committed
chore: setup .net 6 sdk
1 parent 0fecddb commit 5ad6293

File tree

3 files changed

+48
-36
lines changed

3 files changed

+48
-36
lines changed

.github/workflows/package.yml

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
11
name: Publish Package
22

33
env:
4-
Version: 0.1.0
5-
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
4+
Version: 0.1.0
5+
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
66

77
on:
8-
push:
9-
branches:
10-
- master
8+
push:
9+
branches:
10+
- master
1111

1212
jobs:
13-
publish-and-deploy:
14-
runs-on: ubuntu-latest
15-
if: github.repository_owner == 'ant-design-blazor'
16-
17-
steps:
18-
- name: Checkout 🛎️
19-
uses: actions/checkout@v2
20-
with:
21-
persist-credentials: false
22-
23-
- name: Setup .NET Core
24-
uses: actions/setup-dotnet@v1
25-
with:
26-
dotnet-version: 5.0.100
27-
28-
- uses: actions/setup-node@v1
29-
with:
30-
node-version: '10.x'
31-
32-
- name: Package Nightly Nuget 📦
33-
run: |
34-
npm i
35-
SUFFIX=`date "+%y%m%d%H%M%S"`
36-
dotnet build
37-
dotnet pack src/layout/src/AntDesign.ProLayout.csproj /p:PackageVersion=$Version-nightly-${SUFFIX} -c Release -o publish
38-
39-
- name: Publish to Nuget ✔
40-
run: |
41-
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
13+
publish-and-deploy:
14+
runs-on: ubuntu-latest
15+
if: github.repository_owner == 'ant-design-blazor'
16+
17+
steps:
18+
- name: Checkout 🛎️
19+
uses: actions/checkout@v2
20+
with:
21+
persist-credentials: false
22+
23+
- name: Setup .NET Core
24+
uses: actions/setup-dotnet@v1
25+
with:
26+
dotnet-version: 5.0.100
27+
28+
- uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: 6.0.101
31+
32+
- uses: actions/setup-node@v1
33+
with:
34+
node-version: '10.x'
35+
36+
- name: Package Nightly Nuget 📦
37+
run: |
38+
npm i
39+
SUFFIX=`date "+%y%m%d%H%M%S"`
40+
dotnet build
41+
dotnet pack src/layout/src/AntDesign.ProLayout.csproj /p:PackageVersion=$Version-nightly-${SUFFIX} -c Release -o publish
42+
43+
- name: Publish to Nuget ✔
44+
run: |
45+
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate

.github/workflows/pr-checks.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ jobs:
1717
with:
1818
dotnet-version: 5.0.100
1919

20+
- uses: actions/setup-dotnet@v1
21+
with:
22+
dotnet-version: 6.0.101
23+
2024
- uses: actions/setup-node@v1
2125
with:
22-
node-version: "10.x"
26+
node-version: '10.x'
2327

2428
- name: Check Building ⚙
2529
run: |

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ jobs:
2525
with:
2626
dotnet-version: 5.0.100
2727

28+
- uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: 6.0.101
31+
2832
- uses: actions/setup-node@v1
2933
with:
30-
node-version: "10.x"
34+
node-version: '10.x'
3135

3236
- name: Package and publish to Nuget📦
3337
run: |

0 commit comments

Comments
 (0)