Skip to content

Commit 06dc723

Browse files
Publish SSMS extension to the SSMS Gallery on release (#343) (#348)
1 parent ac89acd commit 06dc723

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,19 @@ jobs:
114114
VERSION: ${{ steps.version.outputs.VERSION }}
115115
run: gh release upload "v$env:VERSION" releases/PlanViewer.Ssms.vsix releases/InstallSsmsExtension.exe --clobber
116116

117+
# Publish to the SSMS Gallery (https://ssmsgallery.azurewebsites.net, issue 343).
118+
# The gallery extracts version/description from the vsixmanifest, so the
119+
# upload filename is irrelevant. continue-on-error: a gallery outage must
120+
# never fail the release. bash so `curl` is curl.exe, not the pwsh alias.
121+
- name: Publish SSMS extension to SSMS Gallery
122+
if: steps.ssms.outputs.BUILT == 'true'
123+
continue-on-error: true
124+
shell: bash
125+
run: |
126+
echo "Uploading PlanViewer.Ssms.vsix to the SSMS Gallery..."
127+
curl -sS -f "https://ssmsgallery.azurewebsites.net/api/upload" \
128+
-F "file=@releases/PlanViewer.Ssms.vsix"
129+
117130
# ── SignPath code signing (Windows only, skipped if secret not configured) ──
118131
- name: Check if signing is configured
119132
id: signing

0 commit comments

Comments
 (0)