Skip to content

Commit

Permalink
update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anweiss committed Oct 20, 2020
1 parent 810e059 commit 79f9e05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ jobs:
VSCODE_MARKETPLACE_TOKEN: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
run: |
npm install
npm run deploy -- -p $VSCODE_MARKETPLACE_TOKEN
export TAG=`git describe --tags`
vsce show --json anweiss.cddl-languageserver | jq -e --arg TAG "$TAG" -e '.versions[] | select(.version == $TAG)'
if [ "$?" -ne 0 ]
then
npm run deploy -- -p $VSCODE_MARKETPLACE_TOKEN
fi
publish-crate:
name: Publish crate
Expand Down

0 comments on commit 79f9e05

Please sign in to comment.