Skip to content

Automatic Builds#22

Open
bakustarver wants to merge 6 commits into
nathan-b:mainfrom
bakustarver:main
Open

Automatic Builds#22
bakustarver wants to merge 6 commits into
nathan-b:mainfrom
bakustarver:main

Conversation

@bakustarver

Copy link
Copy Markdown

Enable GitHub Actions autobuilds to generate release artifacts for Windows, Linux and macOS automatically.

They appear as workflow runs in the Actions tab, with downloadable builds attached.

@bakustarver bakustarver changed the title Automatic Build Automatic Builds May 30, 2026
@nathan-b

Copy link
Copy Markdown
Owner

@bakustarver thanks for the contribution!

I'm curious what the goal here is. Specifically, I'm just wondering if it would be preferable to build a real release workflow rather than ad-hoc building artifacts on every push. What do you think?

I also note that every job runs npm i -D electron-builder but then invokes npx electron-packager, which seems a bit off to me.

@bakustarver

Copy link
Copy Markdown
Author

I replaced push-triggered artifact creation with a workflow_dispatch event.
During testing, I had added npm i -D electron-builder. it’s now removed.

If needed, I can also configure a separate workflow to automatically publish builds to the release tab.

@bakustarver

Copy link
Copy Markdown
Author

I added another workflow that handles publishing artifacts in the Release tab.

@nathan-b

nathan-b commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Thanks for the fix! I think what I'd like to see when it comes to releases is a tag-based triggered release. If I push a v*.*.* tag then the automation can pick it up and use ${{ github.ref_name }} as the version (so the version is set by whoever pushes the tag), or at minimum read from package.json. The run_number scheme will produce confusing release history.

I did something similar in another one of my projects that you're welcome to cheat off of here if you'd like :)

@bakustarver

Copy link
Copy Markdown
Author

My goal is to get an automatic build without npm.
I think you can polish the workflow file further on your own.

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