Skip to content

Commit bccde5a

Browse files
Merge pull request #121 from Stillpoint-Software/varndellwagglebee-patch-1
Update pack_publish.yml
2 parents 1bba575 + c74e5f2 commit bccde5a

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/pack_publish.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Pack and Publish
2-
2+
33
on:
44
release:
55
types: [published]
@@ -8,20 +8,37 @@ permissions:
88
contents: write
99
pull-requests: write
1010
packages: write
11+
statuses: write
1112

1213
jobs:
13-
set-config:
14+
set_config:
1415
uses: Stillpoint-Software/shared-workflows/.github/workflows/determine_build_configuration.yml@main
1516
with:
1617
trigger: release
1718
target_branch: ${{ github.event.release.target_commitish }}
1819
override_build_configuration: ''
1920
prerelease: ${{ github.event.release.prerelease }} # true/false from the release
21+
22+
tests:
23+
needs: set_config
24+
uses: Stillpoint-Software/shared-workflows/.github/workflows/run_tests.yml@main
25+
with:
26+
branch: ${{ github.event.release.target_commitish }}
27+
solution_name: ${{ vars.SOLUTION_NAME }}
2028

2129
publish:
22-
needs: set-config
30+
needs: [set_config, tests]
2331
uses: Stillpoint-Software/shared-workflows/.github/workflows/pack_and_publish.yml@main
2432
with:
25-
build_configuration: ${{ needs.set-config.outputs.build_configuration }}
33+
build_configuration: ${{ needs.set_config.outputs.build_configuration }}
2634
secrets:
2735
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
36+
37+
result:
38+
needs: [publish, tests]
39+
if: always()
40+
runs-on: ubuntu-latest
41+
steps:
42+
- run: echo "Tests result = ${{ needs.tests.result }}"
43+
- run: echo "Pack & Publish result = ${{ needs.publish.result }}"
44+

0 commit comments

Comments
 (0)