modgen 1.51 / vscode 1.51 #201
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 TopModel.VSCode | |
on: | |
push: | |
paths: | |
- TopModel.VSCode/package.json | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/develop' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- run: dotnet publish -f net8.0 | |
name: Build LS | |
working-directory: TopModel.LanguageServer | |
- run: dotnet publish -f net6.0 | |
name: Build LS | |
working-directory: TopModel.LanguageServer | |
- run: npm ci | |
working-directory: TopModel.VSCode | |
- name: Publish to Visual Studio Marketplace | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{secrets.VS_MARKETPLACE_API_KEY}} | |
registryUrl: https://marketplace.visualstudio.com | |
packagePath: TopModel.VSCode |