50 lines
1.2 KiB
Markdown
50 lines
1.2 KiB
Markdown
# Gitea Actions - Release Workflow
|
|
|
|
This workflow automatically builds and releases rmtPocketWatcher for Windows and Linux when you push a version tag.
|
|
|
|
## How to Trigger a Release
|
|
|
|
1. Update version in `electron-app/package.json`:
|
|
```bash
|
|
cd electron-app
|
|
npm version patch # or minor, or major
|
|
```
|
|
|
|
2. Push the tag to Gitea:
|
|
```bash
|
|
git push origin main
|
|
git push origin --tags
|
|
```
|
|
|
|
3. The workflow will automatically:
|
|
- Build Windows installer (.exe)
|
|
- Build Linux AppImage and .deb package
|
|
- Create a GitHub/Gitea release
|
|
- Upload all binaries to the release
|
|
|
|
## Requirements
|
|
|
|
- Gitea Actions must be enabled on your repository
|
|
- Runners must be configured for `windows-latest` and `ubuntu-latest`
|
|
- Repository must have write permissions for releases
|
|
|
|
## Manual Build
|
|
|
|
To build locally without releasing:
|
|
|
|
```bash
|
|
cd electron-app
|
|
npm run electron:build -- --win # Windows
|
|
npm run electron:build -- --linux # Linux
|
|
```
|
|
|
|
Outputs will be in `electron-app/release/`
|
|
|
|
## Troubleshooting
|
|
|
|
If the workflow fails:
|
|
- Check that Node.js 20 is available on runners
|
|
- Verify all dependencies install correctly
|
|
- Check Gitea Actions logs for specific errors
|
|
- Ensure GITHUB_TOKEN has proper permissions
|