Skip to content

Commit 9d59ed2

Browse files
ngalaikoclaude
andcommitted
attach github integration on deploy
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 1e3b0d6 commit 9d59ed2

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
# exe.dev VM names are global; keep this unique. Defined once, used below.
1515
env:
1616
VM_NAME: ngalaiko-computer
17+
GH_INTEGRATION: computer
1718

1819
concurrency:
1920
group: deploy
@@ -70,3 +71,13 @@ jobs:
7071
--env RESTIC_PASSWORD="$RESTIC_PASSWORD" \
7172
--env B2_ACCOUNT_ID=0036cfed748e70c0000000002 \
7273
--env B2_ACCOUNT_KEY="$B2_ACCOUNT_KEY"
74+
75+
# rm/new drops vm: attachments, so re-attach every deploy; first deploy
76+
# creates the integration (the GitHub App link itself is web-UI one-time).
77+
- name: Attach GitHub integration
78+
run: |
79+
ssh -i ~/.ssh/id_ed25519 exe.dev integrations attach "$GH_INTEGRATION" "vm:$VM_NAME" \
80+
|| ssh -i ~/.ssh/id_ed25519 exe.dev integrations add github \
81+
--name "$GH_INTEGRATION" \
82+
--repository "${{ github.repository }}" \
83+
--attach "vm:$VM_NAME"

0 commit comments

Comments
 (0)