Skip to content

Commit

Permalink
Create release.yml workflow to package extension
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Mar 27, 2024
1 parent 5ce3c1a commit 212b28b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 212b28b

Please sign in to comment.