Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ jobs:
VERSION='${{ inputs.version }}'
INCR='${{ inputs.increment }}'
if [[ "$MODE" == "explicit" && -z "$VERSION" ]]; then
echo " mode=explicit requires 'version' (e.g., 1.3-alpha)."; exit 1
echo "? mode=explicit requires 'version' (e.g., 1.3-alpha)."; exit 1
fi
if [[ "$MODE" == "bump" && -z "$INCR" ]]; then
echo " mode=bump requires 'increment' (major|minor|patch)."; exit 1
echo "? mode=bump requires 'increment' (major|minor|patch)."; exit 1
fi
echo " inputs look good."
echo "? inputs look good."

set-version:
needs: validate-inputs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: [main, develop]

workflow_run:
workflows: [Create Prerelease, Create Release]
workflows: [Create Release]
types: [requested]

permissions:
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/pack_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ permissions:
contents: write
pull-requests: write
packages: write
statuses: write
statuses: write

jobs:
set-config:
uses: Stillpoint-Software/shared-workflows/.github/workflows/determine_build_configuration.yml@main
Expand All @@ -18,17 +18,26 @@ jobs:
target_branch: ${{ github.event.release.target_commitish }}
override_build_configuration: ''
prerelease: ${{ github.event.release.prerelease }} # true/false from the release

publish:
tests:
needs: set-config
uses: Stillpoint-Software/shared-workflows/.github/workflows/run_tests.yml@main
with:
branch: ${{ github.event.release.target_commitish }}
solution_name: ${{ vars.SOLUTION_NAME }}

publish:
needs: [set-config, tests]
uses: Stillpoint-Software/shared-workflows/.github/workflows/pack_and_publish.yml@main
with:
build_configuration: ${{ needs.set-config.outputs.build_configuration }}
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

result:
needs: [publish]
needs: [publish, tests]
if: always()
runs-on: ubuntu-latest
steps:
- run: echo "Tests result = ${{ needs.tests.result }}"
- run: echo "Pack & Publish result = ${{ needs.publish.result }}"
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run Tests

on:
workflow_run:
workflows: [Create Prerelease, Create Release]
workflows: [Create Release]
types: [requested]
branches: [main, develop]
workflow_dispatch:
Expand Down
Loading