Skip to content

Commit edeeaee

Browse files
Update build-and-sign.yml
1 parent e86d393 commit edeeaee

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13+
- run: echo "Building branch $GITHUB_REF"
1314
- uses: actions/checkout@v3
1415

1516
- name: Setup .NET
@@ -30,16 +31,16 @@ jobs:
3031
uses: actions/upload-artifact@v3
3132
with:
3233
name: BuildArtifacts
33-
path: src/AClassLibrary/bin/Release/**/*.nupkg
34+
path: src/AClassLibrary/bin/Release/**/*.nupkg
3435

3536
sign:
36-
if: github.ref == 'ref/heads/main' # Only run this job on the main branch
37+
needs: build
38+
runs-on: windows-latest
39+
if: github.ref == 'ref/heads/main'
3740
permissions:
3841
id-token: write # Required for requesting the JWT
3942

40-
runs-on: windows-latest
41-
steps:
42-
43+
steps:
4344
- name: Download signing config
4445
uses: actions/download-artifact@v3
4546
with:

0 commit comments

Comments
 (0)