Skip to content

Commit

Permalink
[GHA] Prepare vscode-spring-cli extension for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed May 23, 2024
1 parent 26aa7a9 commit 292fce2
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/publish-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,29 @@ jobs:
run: |
npm install --global @vscode/vsce
vsix_file=${{ inputs.extension-name }}-${{ inputs.version }}-${{ inputs.postfix }}.vsix
echo "vsce publish -p ${{ secrets.VSCE_PUBLISH_TOKEN }} --packagePath $vsix_file"
vsce publish -p ${{ secrets.VSCE_PUBLISH_TOKEN }} --packagePath $vsix_file
- name: Publish to Eclipse Open VSX
id: publish-ovsx
run: |
npm install --global ovsx
vsix_file=${{ inputs.extension-name }}-${{ inputs.version }}-${{ inputs.postfix }}.vsix
echo "ovsx publish -p ${{ secrets.OVSX_PUBLISH_TOKEN }} $vsix_file"
# - id: tools-team-slack
# uses: slackapi/slack-github-action@v1.26
# env:
# SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
# with:
# channel-id: "C0188MENU2J"
# payload: |
# {
# "text": "Published release `${{ inputs.extension-name }}-${{ inputs.version }}-${{ inputs.postfix }}.vsix`",
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "Release is now available on VSCode Marketplace: <https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
# }
# }
# ]
# }
ovsx publish -p ${{ secrets.OVSX_PUBLISH_TOKEN }} $vsix_file
- id: tools-team-slack
uses: slackapi/slack-github-action@v1.26
env:
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
with:
channel-id: "C0188MENU2J"
payload: |
{
"text": "Published release `${{ inputs.extension-name }}-${{ inputs.version }}-${{ inputs.postfix }}.vsix`",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Release is now available on VSCode Marketplace: <https://marketplace.visualstudio.com/items?itemName=vmware.${{ inputs.extension-name }}|${{ inputs.extension-name }}>"
}
}
]
}

0 comments on commit 292fce2

Please sign in to comment.