Skip to content

Commit 76eff49

Browse files
committed
fixed branch for testingchanged vsix file in artifactsignore marketplace if no token provided
1 parent ed1a61d commit 76eff49

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
if: runner.os == 'Linux'
6969
with:
7070
name: vsix
71-
path: ./dist/
71+
path: ./dist/${{ steps.set-version.outputs.name }}.vsix
7272
beta:
7373
if: (github.event_name == 'push')
7474
runs-on: ubuntu-latest
@@ -142,6 +142,7 @@ jobs:
142142
jq '.enableProposedApi = false' package.json > "$tmp" && mv "$tmp" package.json
143143
npm install
144144
git push
145+
echo ::set-output name=ovsx::`cat ./dist/.name`
145146
- name: Upload Release Asset
146147
id: upload-release-asset
147148
uses: actions/upload-release-asset@v1
@@ -153,8 +154,10 @@ jobs:
153154
asset_path: ./dist/${{ steps.set-version.outputs.name }}.vsix
154155
asset_name: ${{ steps.set-version.outputs.name }}.vsix
155156
asset_content_type: application/zip
156-
- name: Publish to Marketplaces
157+
- name: Publish to VSCode Marketplace
158+
run: |
159+
[ -n "${{ secrets.VSCE_TOKEN }}" ] && ./node_modules/.bin/vsce publish -p ${{ secrets.VSCE_TOKEN }} || true
160+
- name: Publish to Open VSX Registry
157161
run: |
158-
./node_modules/.bin/vsce publish -p ${{ secrets.VSCE_TOKEN }}
159-
./node_modules/.bin/ovsx publish --pat ${{ secrets.OVSX_TOKEN }}
162+
[ -n "${{ secrets.OVSX_TOKEN }}" ] && ./node_modules/.bin/ovsx publish --pat ${{ secrets.OVSX_TOKEN }} || true
160163

0 commit comments

Comments
 (0)