Skip to content

Commit d4dd059

Browse files
authored
Refactor GitHub Actions workflow for .NET
Removed working-directory for restore, build, and test steps. Updated path for uploading build artifacts. Commented out the signing step for Bruce artifacts.
1 parent 91c87ee commit d4dd059

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

.github/workflows/dotnet.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ jobs:
2424
dotnet-version: 8.0.x
2525
- name: Restore dependencies
2626
run: dotnet restore
27-
working-directory: ./src
2827
- name: Build
2928
run: dotnet build --no-restore -c release
30-
working-directory: ./src
3129
- name: Test
3230
run: dotnet test --no-build -c release --verbosity normal
33-
working-directory: ./src
3431

3532
- name: Upload signing file list
3633
uses: actions/upload-artifact@v4
@@ -42,7 +39,7 @@ jobs:
4239
uses: actions/upload-artifact@v4
4340
with:
4441
name: BuildArtifacts
45-
path: ./src/Kerberos.NET/bin/Release/**/*.nupkg
42+
path: Kerberos.NET/bin/Release/**/*.nupkg
4643

4744
sign:
4845
needs: build
@@ -99,19 +96,19 @@ jobs:
9996
--azure-key-vault-url "${{ secrets.KEY_VAULT_URL }}"
10097
--azure-key-vault-certificate "${{ secrets.KEY_VAULT_CERTIFICATE_ID }}"
10198
102-
- name: Sign Bruce artifacts
103-
shell: pwsh
104-
run: >
105-
.\sign code azure-key-vault `
106-
"**/*.nupkg" `
107-
--base-directory "$(github.workspace)\drop" `
108-
--file-list "${{ github.workspace }}/config/filelist.txt"
109-
--publisher-name "Bruce" `
110-
--description "Command line client for Kerberos.NET" `
111-
--description-url "https://github.com/dotnet/Kerberos.NET" `
112-
--azure-credential-type "azure-cli"
113-
--azure-key-vault-url "${{ secrets.KEY_VAULT_URL }}"
114-
--azure-key-vault-certificate "${{ secrets.KEY_VAULT_CERTIFICATE_ID }}"
99+
# - name: Sign Bruce artifacts
100+
# shell: pwsh
101+
# run: >
102+
# .\sign code azure-key-vault `
103+
# "**/*.nupkg" `
104+
# --base-directory "$(github.workspace)\drop" `
105+
# --file-list "${{ github.workspace }}/config/filelist.txt"
106+
# --publisher-name "Bruce" `
107+
# --description "Command line client for Kerberos.NET" `
108+
# --description-url "https://github.com/dotnet/Kerberos.NET" `
109+
# --azure-credential-type "azure-cli"
110+
# --azure-key-vault-url "${{ secrets.KEY_VAULT_URL }}"
111+
# --azure-key-vault-certificate "${{ secrets.KEY_VAULT_CERTIFICATE_ID }}"
115112

116113
# Publish the signed packages
117114
- name: Upload build artifacts

0 commit comments

Comments
 (0)