mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 09:33:10 -07:00
1.9 KiB
1.9 KiB
Release Workflow
This GitHub Action workflow automatically builds and releases FriendlyKobold for macOS, Windows, and Linux.
How to Create a Release
Method 1: Tag-based Release (Recommended)
-
Create and push a new tag:
git tag v1.0.0 git push origin v1.0.0 -
The workflow will automatically:
- Build the app for all platforms
- Run type checking and linting
- Create a GitHub release
- Upload the built files as release assets
Method 2: Manual Release
- Go to the "Actions" tab in your GitHub repository
- Select the "Release" workflow
- Click "Run workflow"
- Enter the tag version (e.g.,
v1.0.0) - Click "Run workflow"
Generated Files
The workflow creates the following files:
- macOS:
FriendlyKobold-{version}.dmg - Windows:
FriendlyKobold Setup {version}.exe - Linux:
FriendlyKobold-{version}.AppImage
Requirements
- The repository must have a
GITHUB_TOKEN(automatically provided by GitHub) - Node.js 20 and npm for building
- All dependencies must be properly defined in
package.json
Troubleshooting
If the build fails:
- Check that all dependencies are installed correctly
- Ensure the build script works locally:
npm run build - Check the workflow logs for specific error messages
- Verify that the version tag follows semantic versioning (e.g.,
v1.0.0)
Adding Icons
To add custom icons for your releases:
- Create an
assetsfolder in the project root - Add the following icon files:
icon.icnsfor macOSicon.icofor Windowsicon.pngfor Linux
- Update the
buildsection inpackage.jsonto reference these icons
Customizing the Release
You can customize the release by editing .github/workflows/release.yml:
- Change the supported platforms in the
matrix.osarray - Modify the release notes template
- Add additional build steps or checks
- Change the artifact upload logic