From 99ce0db99b33f2def95877297d85427cb1be155a Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Fri, 22 Mar 2024 09:46:54 +0100 Subject: [PATCH] Add GitHub action to automatically publish extension --- .github/workflows/publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..c53b9bc --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: Deploy Extension + +on: + workflow_dispatch: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm install + - uses: lannonbr/vsce-action@3.0.0 + with: + args: "publish -p $VSCE_TOKEN" + env: + VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}