Skip to repository content156 lines · 6.1 KB · yaml
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T04:25:32.376Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
after_release.yml
1# Generated from xtask::workflows::after_release
2# Rebuild with `cargo xtask workflows`.
3name: after_release
4env:
5 TAG_NAME: ${{ github.event.release.tag_name || inputs.tag_name }}
6 IS_PRERELEASE: ${{ github.event.release.prerelease || inputs.prerelease }}
7on:
8 release:
9 types:
10 - published
11 workflow_dispatch:
12 inputs:
13 tag_name:
14 description: tag_name
15 required: true
16 type: string
17 prerelease:
18 description: prerelease
19 required: true
20 type: boolean
21 body:
22 description: body
23 type: string
24 default: ''
25permissions:
26 contents: read
27jobs:
28 rebuild_releases_page:
29 if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')
30 runs-on: namespace-profile-2x4-ubuntu-2404
31 steps:
32 - name: after_release::rebuild_releases_page::refresh_cloud_releases
33 run: curl -fX POST "https://cloud.zed.dev/releases/refresh?expect_tag=$TAG_NAME"
34 - name: after_release::rebuild_releases_page::revalidate_zed_dev
35 run: 'curl -fX GET "https://zed.dev/api/revalidate?tag=releases" -H "Authorization: Bearer $ZED_DEV_REVALIDATE_TOKEN"'
36 env:
37 ZED_DEV_REVALIDATE_TOKEN: ${{ secrets.ZED_DEV_REVALIDATE_TOKEN }}
38 deploy_docs:
39 if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')
40 permissions:
41 contents: read
42 uses: zed-industries/zed/.github/workflows/deploy_docs.yml@3f16f7b9082f8828e4d6ae207d2349b1ef932517
43 secrets:
44 DOCS_AMPLITUDE_API_KEY: ${{ secrets.DOCS_AMPLITUDE_API_KEY }}
45 DOCS_CONSENT_IO_INSTANCE: ${{ secrets.DOCS_CONSENT_IO_INSTANCE }}
46 CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
47 CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
48 with:
49 channel: ${{ (github.event.release.prerelease || inputs.prerelease) && 'preview' || 'stable' }}
50 checkout_ref: ${{ github.event.release.tag_name || inputs.tag_name }}
51 post_to_discord:
52 needs:
53 - rebuild_releases_page
54 if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')
55 runs-on: namespace-profile-2x4-ubuntu-2404
56 steps:
57 - id: get-release-url
58 name: after_release::post_to_discord::get_release_url
59 run: |
60 if [ "$IS_PRERELEASE" == "true" ]; then
61 URL="https://zed.dev/releases/preview"
62 else
63 URL="https://zed.dev/releases/stable"
64 fi
65
66 echo "URL=$URL" >> "$GITHUB_OUTPUT"
67 - id: get-content
68 name: after_release::post_to_discord::get_content
69 uses: 2428392/gh-truncate-string-action@b3ff790d21cf42af3ca7579146eedb93c8fb0757
70 with:
71 stringToTruncate: |
72 📣 Zed [${{ env.TAG_NAME }}](<${{ steps.get-release-url.outputs.URL }}>) was just released!
73
74 ${{ github.event.release.body || inputs.body }}
75 maxLength: 2000
76 truncationSymbol: '...'
77 - name: after_release::post_to_discord::discord_webhook_action
78 uses: tsickert/discord-webhook@c840d45a03a323fbc3f7507ac7769dbd91bfb164
79 with:
80 webhook-url: ${{ secrets.DISCORD_WEBHOOK_RELEASE_NOTES }}
81 content: ${{ steps.get-content.outputs.string }}
82 publish_winget:
83 runs-on: self-32vcpu-windows-2022
84 steps:
85 - name: after_release::publish_winget::sync_winget_pkgs_fork
86 run: |
87 $headers = @{
88 "Authorization" = "Bearer $env:WINGET_TOKEN"
89 "Accept" = "application/vnd.github+json"
90 "X-GitHub-Api-Version" = "2022-11-28"
91 }
92 $body = @{ branch = "master" } | ConvertTo-Json
93 $uri = "https://api.github.com/repos/$env:GITHUB_REPOSITORY_OWNER/winget-pkgs/merge-upstream"
94 try {
95 Invoke-RestMethod -Uri $uri -Method Post -Headers $headers -Body $body -ContentType "application/json"
96 Write-Host "Successfully synced winget-pkgs fork"
97 } catch {
98 Write-Host "Fork sync response: $_"
99 Write-Host "Continuing anyway - fork may already be up to date"
100 }
101 shell: pwsh
102 env:
103 WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
104 - id: set-package-name
105 name: after_release::publish_winget::set_package_name
106 run: |
107 if ($env:IS_PRERELEASE -eq "true") {
108 $PACKAGE_NAME = "ZedIndustries.Zed.Preview"
109 } else {
110 $PACKAGE_NAME = "ZedIndustries.Zed"
111 }
112
113 echo "PACKAGE_NAME=$PACKAGE_NAME" >> $env:GITHUB_OUTPUT
114 shell: pwsh
115 - name: after_release::publish_winget::winget_releaser
116 uses: vedantmgoyal9/winget-releaser@19e706d4c9121098010096f9c495a70a7518b30f
117 with:
118 identifier: ${{ steps.set-package-name.outputs.PACKAGE_NAME }}
119 release-tag: ${{ env.TAG_NAME }}
120 max-versions-to-keep: 5
121 token: ${{ secrets.WINGET_TOKEN }}
122 create_sentry_release:
123 if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')
124 runs-on: namespace-profile-2x4-ubuntu-2404
125 steps:
126 - name: steps::checkout_repo
127 uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
128 with:
129 clean: false
130 - name: release::create_sentry_release
131 uses: getsentry/action-release@526942b68292201ac6bbb99b9a0747d4abee354c
132 with:
133 environment: production
134 env:
135 SENTRY_ORG: zed-dev
136 SENTRY_PROJECT: zed
137 SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
138 notify_on_failure:
139 needs:
140 - rebuild_releases_page
141 - post_to_discord
142 - publish_winget
143 - create_sentry_release
144 - deploy_docs
145 if: failure()
146 runs-on: namespace-profile-2x4-ubuntu-2404
147 steps:
148 - name: release::send_slack_message
149 run: 'curl -X POST -H ''Content-type: application/json'' --data "$(jq -n --arg text "$SLACK_MESSAGE" ''{"text": $text}'')" "$SLACK_WEBHOOK"'
150 env:
151 SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_WORKFLOW_FAILURES }}
152 SLACK_MESSAGE: '❌ ${{ github.workflow }} failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
153defaults:
154 run:
155 shell: bash -euxo pipefail {0}
156