Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
feat: upload VSIX to release assets (force release)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwu1105 committed Jul 28, 2022
1 parent 0c5c3f2 commit 39c32fa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
with:
node-version: 16

- uses: google-github-actions/release-please-action@v3
- name: Release Please
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
Expand All @@ -34,3 +35,14 @@ jobs:
run: npx vsce publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Upload VSIX to release assets
if: steps.release.outputs.release_created
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/vsix" \
--data-binary "@vscode-qt-for-python-${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.vsix"
"${{ steps.release.outputs.upload_url }}?name=vscode-qt-for-python-${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.vsix"

0 comments on commit 39c32fa

Please sign in to comment.