diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..f21ae43 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,34 @@ +name: Release Extension to Marketplace +on: + push: + tags: + - v* + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install vsce + run: npm install -g @vscode/vsce + + - name: Package Extension + run: vsce package + + - name: Upload VSIX file + uses: actions/upload-artifact@v4 + with: + name: cue-${{ github.ref_name }}.vsix + path: ./cue-*.vsix + + - name: Publish Extension + env: + VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} + run: vsce publish diff --git a/package.json b/package.json index 4cf205b..ea58dda 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,13 @@ { - "name": "cue", - "displayName": "CUE", + "name": "cue-syntax", + "displayName": "CUE Syntax", "description": "CUE language support for Visual Studio Code", "version": "0.0.1", "publisher": "cuelang.org", + "repository": { + "type": "git", + "url": "https://github.com/cue-sh/vscode-cue" + }, "engines": { "vscode": "^1.37.0" },