Browse Source

bug-fixes

imwald
Silberengel 1 month ago
parent
commit
a0d18baf5a
  1. 39
      .github/workflows/release-electron.yml
  2. 3
      scripts/build-and-push-prod.sh

39
.github/workflows/release-electron.yml

@ -1,39 +0,0 @@ @@ -1,39 +0,0 @@
# Builds Linux AppImage + deb and attaches them to a GitHub Release when you push a tag like v19.2.3
name: Release Electron (Linux)
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build & pack
run: npm run electron:pack
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts to release
uses: softprops/action-gh-release@v2
with:
files: |
release/*.AppImage
release/*.deb
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

3
scripts/build-and-push-prod.sh

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Build main app and NIP-66 monitor images locally; push to silberengel/imwald-jumble and silberengel/imwald-jumble-nip66-monitor as :latest and :<version from package.json>.
# Then create git tag v<version> and push it (e.g. to trigger release workflows).
# Then create git tag v<version> and push it.
# Run from repo root. Requires: docker, docker login, git.
set -e
@ -42,4 +42,3 @@ echo "Pushing tag $GIT_TAG to origin" @@ -42,4 +42,3 @@ echo "Pushing tag $GIT_TAG to origin"
git push origin "$GIT_TAG"
echo "Done. On the server: docker compose -f docker-compose.prod.yml pull && docker compose -f docker-compose.prod.yml up -d"
echo "If .github/workflows/release-electron.yml is enabled, Linux AppImage/deb will attach when the workflow finishes."

Loading…
Cancel
Save