Skip to content

Commit e052b1a

Browse files
Update build-and-sign.yml
1 parent aeab190 commit e052b1a

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

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

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
1312
steps:
1413
- uses: actions/checkout@v3
1514

@@ -21,9 +20,38 @@ jobs:
2120
- name: Build Package
2221
run: dotnet pack --configuration Release src/AClassLibrary/AClassLibrary.csproj
2322

23+
- name: Upload signing file list
24+
uses: actions/upload-artifact@v3
25+
with:
26+
name: config
27+
path: sconfig
28+
2429
- name: Upload build artifacts
2530
uses: actions/upload-artifact@v3
2631
with:
27-
name: BuildPackages
32+
name: BuildArtifacts
2833
path: src/AClassLibrary/bin/Release/**/*.nupkg
2934

35+
sign:
36+
runs-on: windows-latest
37+
steps:
38+
39+
- name: Download signing config
40+
uses: actions/download-artifact@v3
41+
with:
42+
name: config
43+
44+
- name: Download build artifacts
45+
uses: actions/download-artifact@v3
46+
with:
47+
name: BuildArtifacts
48+
49+
- name: Setup .NET
50+
uses: actions/setup-dotnet@v3
51+
with:
52+
dotnet-version: 6.x
53+
54+
- name: Install Sign CLI tool
55+
run: dotnet tool install --tool-path . sign --version 0.9.0-beta.23063.3
56+
57+

0 commit comments

Comments
 (0)