From 212b28ba85ec593e76b1bf83304dc56e1f9a5da2 Mon Sep 17 00:00:00 2001 From: will-v-pi <108662275+will-v-pi@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:55:04 +0000 Subject: [PATCH] Create release.yml workflow to package extension --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7422231 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Build .vsix release asset + +on: push + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Package Extension + run: | + npm i -g vsce + npm i -g yarn + yarn + vsce package --pre-release + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: raspberry-pi-pico + path: raspberry-pi-pico-*.vsix + - name: Add Release Asset + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: raspberry-pi-pico-*.vsix