Merge pull request #2472 from posit-dev/dotnomad/1.6.0 #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |