Files
HRiggs b7c2e0fc24
Some checks failed
Deploy Backend to Docker / deploy (push) Failing after 6m13s
Deploy Backend to Docker / deploy-portainer (push) Has been skipped
Tons of Stuff
2025-12-03 20:19:40 -05:00

1.2 KiB

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:

    cd electron-app
    npm version patch  # or minor, or major
    
  2. Push the tag to Gitea:

    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:

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