From 5b700c532fc3bbc3896ddfa220a3c574994d6abc Mon Sep 17 00:00:00 2001 From: Matheus Abreu Date: Tue, 4 Aug 2020 08:31:55 -0300 Subject: [PATCH] Automated deploy with github action (#3) * Created Deploy / Publish Action * Changed to recommended way of using yarn --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..96f7df2 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: VSCode Marketplace Deploy / Publish + +on: + release: + types: + - created + +jobs: + publish: + name: Publish extension to VSCode Marketplace + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install Node.js and dependencies + uses: actions/setup-node@v1 + with: + node-version: "12" + - run: yarn install + + - name: Publish extension + run: ./node_modules/.bin/vsce publish -p $VSCE_PAT + env: + VSCE_PAT: ${{ secrets.VSCE_PAT }}