Skip to content

Automate v0.3.6 release publishing #4

Automate v0.3.6 release publishing

Automate v0.3.6 release publishing #4

Workflow file for this run

name: Build and Publish Release
on:
workflow_dispatch:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build-linux:
name: Build Linux
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install Linux dependencies
run: |
sudo apt update
sudo apt install -y libsecret-1-dev rpm
- name: Install npm dependencies
run: npm ci
- name: Build renderer
run: npx vite build --config src/renderer/vite.config.ts
- name: Build Linux packages
run: npx electron-builder --linux AppImage deb rpm --publish never
- name: Upload Linux artifacts
uses: actions/upload-artifact@v4
with:
name: zap-browser-linux
path: |
dist/*.AppImage
dist/*.deb
dist/*.rpm
build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Build renderer
run: npx vite build --config src/renderer/vite.config.ts
- name: Build Windows installer and portable builds
run: npx electron-builder --win nsis portable zip --publish never
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: zap-browser-windows
path: |
dist/*.exe
dist/*.zip
dist/*.blockmap
publish-release:
name: Publish GitHub Release
runs-on: ubuntu-24.04
needs:
- build-linux
- build-windows
steps:
- uses: actions/download-artifact@v4
with:
path: release-artifacts
- name: Create release notes
run: |
cat > RELEASE_NOTES.md <<'NOTES'
## Zap Browser v0.3.6-beta
UX, privacy and release-infrastructure update.
### Added
- Built-in update checker
- Version badge in the main browser UI
- Startup notification when a new release is available
- Theme engine with multiple selectable themes
- Session-only NIP-07 permissions
- Clear all NIP-07 permissions action
- Improved popup, popunder and overlay blocking
- Basic aggressive ad skin cleanup
### Improved
- English is now the default language
- Language switching is reactive across key UI areas
- Settings/About version display
- GitHub Actions release automation
- Linux and Windows release packaging
### Builds
- Linux AppImage
- Debian package
- RPM package
- Windows NSIS installer
- Windows portable/zip builds
### Notes
This is still beta software intended for testing and feedback.
Windows builds are experimental.
NOTES
- name: Publish release
uses: softprops/action-gh-release@v2
with:
name: Zap Browser ${{ github.ref_name }} — Themes, Updates & Privacy Hardening
body_path: RELEASE_NOTES.md
files: |
release-artifacts/**/*.AppImage
release-artifacts/**/*.deb
release-artifacts/**/*.rpm
release-artifacts/**/*.exe
release-artifacts/**/*.zip
release-artifacts/**/*.blockmap