Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tal7aouy committed Dec 20, 2023
1 parent 8c91908 commit 94fa800
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,33 @@ name: Deploy VSCode Extension
on:
push:
branches:
- main
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '16'

- name: Install dependencies
run: npm install

- name: Build extension
run: npm run build

- name: Deploy extension
run: |
vsce package
vsce publish -p ${{ secrets.VSCE_TOKEN }}
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "16"

- name: Install dependencies
run: npm install

- name: Install vsce
run: npm install -g vsce

- name: Build extension
run: npm run build

- name: Deploy extension
run: |
vsce package
vsce publish -p ${{ secrets.VSCE_TOKEN }}
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}

0 comments on commit 94fa800

Please sign in to comment.