Compare commits

...

2 Commits

Author SHA1 Message Date
jason 5a04dae471 ci(deb): restrict APT publish to v* release tags
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Previously the workflow built and published on every push to master
and feature/debian-packaging in addition to v* tags. That meant the
gh-pages APT repo got overwritten on every commit with same-version
.debs, causing apt clients to see a phantom "update available" each
time and burning ~5-10 min of cross-compile CI per merge.

After this change:
  - PRs into master still cross-build .debs as a sanity check.
  - v* tags build, publish to gh-pages, and create a GitHub release.
  - workflow_dispatch remains as the manual escape hatch.
  - master pushes no longer trigger this workflow (ci.yml still runs).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-02 12:55:43 -07:00
jason fd82cc234b Fix postinst message box alignment
Build Debian Packages / Build .deb for ${{ matrix.target }} (amd64, x86_64-unknown-linux-gnu) (push) Has been cancelled
Build Debian Packages / Build .deb for ${{ matrix.target }} (arm64, aarch64-unknown-linux-gnu) (push) Has been cancelled
Build Debian Packages / Build .deb for ${{ matrix.target }} (armhf, armv7-unknown-linux-gnueabihf) (push) Has been cancelled
Build Debian Packages / Build .deb for ${{ matrix.target }} (riscv64, riscv64gc-unknown-linux-gnu) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Build Debian Packages / Combine all .deb packages (push) Has been cancelled
Build Debian Packages / Publish to APT Repository (push) Has been cancelled
Build Debian Packages / Create GitHub Release (push) Has been cancelled
2025-11-24 14:02:39 -08:00
2 changed files with 27 additions and 25 deletions
+6 -4
View File
@@ -1,10 +1,10 @@
name: Build Debian Packages name: Build Debian Packages
on: on:
# APT publishing is release-driven: we build + publish only on `v*` tag
# pushes. PRs into master still build the .debs as a sanity check (no
# publish). Manual dispatch is kept as an escape hatch.
push: push:
branches:
- master
- feature/debian-packaging
tags: tags:
- "v*" - "v*"
pull_request: pull_request:
@@ -231,7 +231,9 @@ jobs:
name: Publish to APT Repository name: Publish to APT Repository
needs: combine-artifacts needs: combine-artifacts
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') # Publish only on `v*` release tags — keep gh-pages stable between
# releases instead of overwriting same-version .debs on every commit.
if: startsWith(github.ref, 'refs/tags/v')
permissions: permissions:
contents: write contents: write
steps: steps:
+21 -21
View File
@@ -29,27 +29,27 @@ cat <<EOF
┌─────────────────────────────────────────────────────────────────────┐ ┌─────────────────────────────────────────────────────────────────────┐
│ socktop-agent has been installed successfully! │ │ socktop-agent has been installed successfully! │
├─────────────────────────────────────────────────────────────────────┤ ├─────────────────────────────────────────────────────────────────────┤
│ │
│ The systemd service has been installed but is NOT enabled by │ │ The systemd service has been installed but is NOT enabled by
│ default. To enable and start the service: │ │ default. To enable and start the service:
│ │
│ sudo systemctl enable --now socktop-agent │ │ sudo systemctl enable --now socktop-agent
│ │
│ To start without enabling on boot: │ │ To start without enabling on boot:
│ │
│ sudo systemctl start socktop-agent │ │ sudo systemctl start socktop-agent
│ │
│ To check service status: │ │ To check service status:
│ │
│ sudo systemctl status socktop-agent │ │ sudo systemctl status socktop-agent
│ │
│ Default settings: │ │ Default settings:
│ - Port: 3000 (use -p or --port to change) │ │ - Port: 3000 (use -p or --port to change)
│ - SSL/TLS: disabled (use --enableSSL to enable) │ │ - SSL/TLS: disabled (use --enableSSL to enable)
│ │
│ For more information, see: │ │ For more information, see:
│ /usr/share/doc/socktop_agent/README.md │ │ /usr/share/doc/socktop_agent/README.md
│ │
└─────────────────────────────────────────────────────────────────────┘ └─────────────────────────────────────────────────────────────────────┘
EOF EOF