Skip to content

Commit f9a334c

Browse files
committed
Release script must sign packages on Windows Server
1 parent cd77c6e commit f9a334c

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ jobs:
3131
with:
3232
dotnet-version: 7
3333

34-
- name: setup NuGetKeyVaultSignTool
35-
if: steps.cache-dotnettools.outputs.cache-hit != 'true'
36-
run: dotnet tool install --verbosity minimal --global NuGetKeyVaultSignTool --version 3.2.2
37-
3834
- name: restore
3935
run: dotnet restore
4036

@@ -47,6 +43,32 @@ jobs:
4743
- name: pack
4844
run: dotnet pack --no-build --no-restore -o dist
4945

46+
- name: publish artifact
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: VbaCompression_packages
50+
path: '${{ github.workspace }}/dist'
51+
52+
sign:
53+
needs: build
54+
runs-on: windows-2022
55+
56+
steps:
57+
- name: download artifact
58+
uses: actions/download-artifact@v3
59+
with:
60+
name: VbaCompression_packages
61+
path: '${{ github.workspace }}/dist'
62+
63+
- name: setup dotnet
64+
uses: actions/setup-dotnet@v3
65+
with:
66+
dotnet-version: 7
67+
68+
- name: setup NuGetKeyVaultSignTool
69+
if: steps.cache-dotnettools.outputs.cache-hit != 'true'
70+
run: dotnet tool install --verbosity minimal --global NuGetKeyVaultSignTool --version 3.2.2
71+
5072
- name: sign
5173
id: sign_package
5274
working-directory: '${{ github.workspace}}/dist'

0 commit comments

Comments
 (0)