File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed
Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change 11name : Pack and Publish
2-
2+
33on :
44 release :
55 types : [published]
@@ -8,20 +8,37 @@ permissions:
88 contents : write
99 pull-requests : write
1010 packages : write
11+ statuses : write
1112
1213jobs :
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+
You can’t perform that action at this time.
0 commit comments