Last active
March 24, 2022 16:23
-
-
Save lnash94/f2f2b3760ad24c5a62562eff5a24d547 to your computer and use it in GitHub Desktop.
GitHub action flow for publishing the Vs-code plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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