Skip to content

Commit

Permalink
Final change to publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hhpatel14 committed Feb 5, 2025
1 parent 502707f commit 5825411
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ jobs:
name: vscode-extension
path: dist/*.vsix

- name: Fake Publish (If Fork) or Real Publish
- name: Publish to marketplace
run: |
if [ "${{ github.repository_owner }}" = "hhpatel14" ]; then
echo "This is a fork. Running fake publish..."
else
echo "This is the main repo. Publishing to VS Code Marketplace..."
vsce publish --pat ${{ secrets.VSCE_TOKEN }}
if [ "${{ github.repository_owner }}" = "migtool" ]; then
echo "Publishing to VS Code Marketplace..."
vsce publish --pat ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
fi

0 comments on commit 5825411

Please sign in to comment.