Polish workflows#135
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Polishes the existing GitHub Actions setup without expanding the workflow surface area.
The release flow now matches the actual dependencies:
build-testvalidates the solution and tests.packageindependently publishes/builds the app for each architecture throughdotnet publish.deploywaits for both successful tests and successful packages before creating a release.Line-by-line explanation
.github/actions/build-and-test/action.yml--no-restoretodotnet testbecause the composite action already runsdotnet restorebefore build and test, keeping test execution consistent with the existing--no-buildoptimization..github/actions/create-release-artifacts/action.ymlCreate BinariestoCreate binariesfor sentence-case step naming that matches the adjacent step style.arch="${{ inputs.arch }}": avoids an extra shell variable and uses the action input directly where it is needed.$archwith${{ inputs.arch }}in the publish output path and--archargument, and quotes${{ inputs.version }}in the MSBuild property value.$archwith${{ inputs.arch }}in the WiX source path and output filename, and quotes the WiX define argument so the fullMainExeSource=...value is passed as one argument.Create Portable ZIPtoCreate portable ZIPfor sentence-case step naming.${{ inputs.arch }}directly, uses${{ inputs.version }}directly, and adds-Forceso reruns overwrite an existing ZIP path instead of failing on a stale file..github/workflows/build.ymlactions/checkout@v5toactions/checkout@v6.actions/checkout@v5toactions/checkout@v6.actions/checkout@v5toactions/checkout@v6..github/workflows/deploy.ymlcontents: writetocontents: read, so write permission is no longer granted to every release job by default.actions/checkout@v5toactions/checkout@v6.actions/checkout@v5toactions/checkout@v6.build-testandpackage; package no longer waits for tests becausedotnet publishperforms its own build, but deploy remains gated on both validation paths.windows-2025toubuntu-24.04because it only downloads artifacts and calls the GitHub release action.contents: write, keeping release publishing permission scoped to the job that needs it.contains(inputs.version, 'preview')tocontains(inputs.version, '-'), matching SemVer prerelease syntax such as1.2.3-preview.1,1.2.3-beta.1, or1.2.3-rc.1.Validation
actionlintgit diff --check