Skip to content

Instantly share code, notes, and snippets.

@murrayinman
Forked from lnash94/workflow.yaml
Created March 24, 2022 16:23
Show Gist options
  • Save murrayinman/0f9f54b9adcbe507dbd7ba0b08b864df to your computer and use it in GitHub Desktop.
Save murrayinman/0f9f54b9adcbe507dbd7ba0b08b864df 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