Skip to content

Instantly share code, notes, and snippets.

@lnash94
Last active March 24, 2022 16:23
Show Gist options
  • Save lnash94/f2f2b3760ad24c5a62562eff5a24d547 to your computer and use it in GitHub Desktop.
Save lnash94/f2f2b3760ad24c5a62562eff5a24d547 to your computer and use it in GitHub Desktop.
GitHub action flow for publishing the Vs-code plugin
on:
release:
types: [published]
name: Publish Extension with json
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository.
uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Execute the VSCE commands remove old plugin
uses: lannonbr/vsce-action@master
with:
args: unpublish -p $VSCE_TOKEN (username).test02
env:
VSCE_TOKEN: ${{ secrets.VSCODE_PAT }}
- name: Execute the VSCE commands
uses: lannonbr/vsce-action@master
with:
args: publish -p $VSCE_TOKEN --packagePath plugin/test02.vsix
env:
VSCE_TOKEN: ${{ secrets.VSCODE_PAT }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment