Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: Release tag to build (for example, v0.7.1)
required: true
type: string

env:
RELEASE_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }}

permissions:
contents: write
Expand All @@ -20,7 +29,14 @@ jobs:

- name: Check manifest versions match the tag
run: |
tag="${GITHUB_REF_NAME#v}"
case "$RELEASE_TAG" in
v*) ;;
*)
echo "::error::release tag must start with 'v' (got '$RELEASE_TAG')"
exit 1
;;
esac
tag="${RELEASE_TAG#v}"
pkg=$(jq -r .version package.json)
lock=$(jq -r .version package-lock.json)
lockpkg=$(jq -r '.packages[""].version' package-lock.json)
Expand Down Expand Up @@ -175,7 +191,7 @@ jobs:
# init_telemetry) and the JS SDK's (src/lib/telemetry.ts's initTelemetry) --
# otherwise traces from one side won't symbolicate against these maps.
npx --yes @sentry/cli sourcemaps upload \
--release "agentpanel@${GITHUB_REF_NAME#v}" \
--release "agentpanel@${RELEASE_TAG#v}" \
dist

- name: Build the app
Expand All @@ -197,8 +213,8 @@ jobs:
# they still build releases, just with telemetry compiled inert.
AGENTPANEL_SENTRY_DSN: ${{ secrets.AGENTPANEL_SENTRY_DSN }}
with:
tagName: ${{ github.ref_name }}
releaseName: "AgentPanel ${{ github.ref_name }}"
tagName: ${{ env.RELEASE_TAG }}
releaseName: "AgentPanel ${{ env.RELEASE_TAG }}"
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
Expand All @@ -217,17 +233,17 @@ jobs:
run: |
# `GET /releases/tags/{tag}` omits drafts, so list and match instead.
assets=$(gh api "repos/${GITHUB_REPOSITORY}/releases" --paginate --jq \
".[] | select(.tag_name == \"${GITHUB_REF_NAME}\") | .assets[] | select(.name == \"latest.json\") | .url")
".[] | select(.tag_name == \"${RELEASE_TAG}\") | .assets[] | select(.name == \"latest.json\") | .url")
count=$(printf '%s\n' "$assets" | grep -c '^https' || true)
if [ "$count" -eq 0 ]; then
echo "::error::no latest.json asset on the ${GITHUB_REF_NAME} release"
echo "::error::no latest.json asset on the ${RELEASE_TAG} release"
exit 1
fi
# More than one means the build legs raced and each wrote a partial
# manifest -- the v0.6.0 failure. strategy.max-parallel is meant to
# prevent it; if this fires, that serialization has regressed.
if [ "$count" -gt 1 ]; then
echo "::error::${count} assets named latest.json on the ${GITHUB_REF_NAME} release -- the build legs raced and each wrote a partial manifest. Check strategy.max-parallel, delete the release, and re-run every leg."
echo "::error::${count} assets named latest.json on the ${RELEASE_TAG} release -- the build legs raced and each wrote a partial manifest. Check strategy.max-parallel, delete the release, and re-run every leg."
exit 1
fi
asset="$assets"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "agentpanel",
"private": true,
"version": "0.7.0",
"version": "0.7.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "agentpanel"
version = "0.7.0"
version = "0.7.1"
description = "AgentPanel — a worktree command center for coding agents"
authors = ["Jason Robey"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "AgentPanel",
"version": "0.7.0",
"version": "0.7.1",
"identifier": "com.jason.agentpanel",
"build": {
"beforeDevCommand": "npm run dev",
Expand Down
Loading