Skip to content

Commit

Permalink
Fix and test CD release
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasFA committed Jan 20, 2024
1 parent 87198b9 commit efa87d7
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Exit if not on master branch
if: endsWith(github.ref, 'master') == false
run: exit -1

- uses: actions/setup-node@v4
with:
node-version: 20
Expand All @@ -22,14 +20,14 @@ jobs:
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
pat: stub

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
# - name: Publish to Visual Studio Marketplace
# uses: HaaLeo/publish-vscode-extension@v1
# with:
# pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
# registryUrl: https://marketplace.visualstudio.com
# extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}

- name: GitHub Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit efa87d7

Please sign in to comment.