Skip to content

Add GitHub Actions workflow for automated Windows binary builds#3

Merged
MrSimonC merged 5 commits intomasterfrom
copilot/create-pipeline-for-windows-binary
Jan 21, 2026
Merged

Add GitHub Actions workflow for automated Windows binary builds#3
MrSimonC merged 5 commits intomasterfrom
copilot/create-pipeline-for-windows-binary

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

Automates building the Windows binary on push/PR to master/main branches, storing only the most recent artifact.

Implementation

  • Workflow: .github/workflows/build-windows.yml

    • Runs on windows-latest with .NET 8.x SDK
    • Publishes self-contained win-x64 executable via dotnet publish
    • Uploads FolderSnippets.exe to GitHub artifacts
  • Artifact Retention:

    • retention-days: 1 - automatic cleanup after 24 hours
    • overwrite: true - allows reusing artifact name
    • Result: Only most recent build persists
  • Security: Explicit permissions: contents: read to limit GITHUB_TOKEN scope

Manual Trigger

Includes workflow_dispatch for on-demand builds from Actions tab.

Original prompt

Create a pipeline which uses github actions to build the windows binary and stores only the most recent entry to the github artifacts of this repo


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits January 21, 2026 15:58
Co-authored-by: MrSimonC <3033044+MrSimonC@users.noreply.github.com>
Co-authored-by: MrSimonC <3033044+MrSimonC@users.noreply.github.com>
Co-authored-by: MrSimonC <3033044+MrSimonC@users.noreply.github.com>
Co-authored-by: MrSimonC <3033044+MrSimonC@users.noreply.github.com>
Copilot AI changed the title [WIP] Create GitHub Actions pipeline for building Windows binary Add GitHub Actions workflow for automated Windows binary builds Jan 21, 2026
Copilot AI requested a review from MrSimonC January 21, 2026 16:03
@MrSimonC MrSimonC marked this pull request as ready for review January 21, 2026 16:37
@MrSimonC MrSimonC merged commit 759b2d4 into master Jan 21, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a992d16e7c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +37 to +40
name: FolderSnippets-Windows
path: ./publish/FolderSnippets.exe
retention-days: 1
overwrite: true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Enforce single artifact across workflow runs

The retention-days: 1 and overwrite: true settings here only affect each artifact’s lifetime and (at most) duplicate uploads within the same workflow run; they do not delete artifacts from previous runs. That means if two pushes happen in a day, both runs will still leave artifacts for up to 24 hours, so the repo can have multiple “most recent” artifacts at once, which doesn’t satisfy the “only most recent entry” requirement. Consider adding a step that deletes prior artifacts via the GitHub API before uploading the new one if you truly want only a single artifact to exist at any time.

Useful? React with 👍 / 👎.

@MrSimonC MrSimonC deleted the copilot/create-pipeline-for-windows-binary branch January 21, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants