Skip to content

Merge pull request #2472 from posit-dev/dotnomad/1.6.0 #14

Merge pull request #2472 from posit-dev/dotnomad/1.6.0

Merge pull request #2472 from posit-dev/dotnomad/1.6.0 #14

Workflow file for this run

name: Publish Extension
on:
push:
tags:
- "v*.*.*"
workflow_dispatch: # TODO: testing
jobs:
build:
uses: ./.github/workflows/build.yaml
package:
needs:
- build
uses: ./.github/workflows/package.yaml
publish-vscode-marketplace:
needs:
- package
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- darwin-amd64
- darwin-arm64
- linux-amd64
- linux-arm64
- windows-amd64
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- id: get-extension-path
run: echo "extension_path=dist/$(just name)-$(just version)-${{ matrix.target }}.vsix" >> "$GITHUB_OUTPUT"
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
registryUrl: https://marketplace.visualstudio.com
pat: ${{ secrets.VSCE_PAT }}
extensionFile: ${{ steps.get-extension-path.outputs.extension_path }}
skipDuplicate: true
publish-open-vsx:
needs:
- package
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- darwin-amd64
- darwin-arm64
- linux-amd64
- linux-arm64
- windows-amd64
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- id: get-extension-path
run: echo "extension_path=dist/$(just name)-$(just version)-${{ matrix.target }}.vsix" >> "$GITHUB_OUTPUT"
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: ${{ steps.get-extension-path.outputs.extension_path }}
skipDuplicate: true