Skip to content

Commit

Permalink
Create build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlacey authored Nov 15, 2024
1 parent 2cea360 commit c31c783
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Build"

on:
push:
branches: [main]
paths-ignore:
- '*.md'
pull_request:
branches: [main]
paths-ignore:
- '*.md'

jobs:
build:
outputs:
version: ${{ steps.vsix_version.outputs.version-number }}
name: Build
runs-on: windows-2022
env:
Configuration: Debug
DeployExtension: False
VsixManifestPath: src\source.extension.vsixmanifest
VsixManifestSourcePath: src\source.extension.cs

steps:
- uses: actions/checkout@v4

- name: Setup .NET build dependencies
uses: timheuer/bootstrap-dotnet@v2
with:
nuget: 'false'
sdk: 'false'
msbuild: 'true'

- name: Increment VSIX version
id: vsix_version
uses: timheuer/vsix-version-stamp@v2
with:
manifest-file: ${{ env.VsixManifestPath }}
vsix-token-source-file: ${{ env.VsixManifestSourcePath }}

- name: Build
run: msbuild /v:m -restore /p:OutDir=\_built ./CollapseComments.sln

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}.vsix
path: /_built/**/*.vsix

0 comments on commit c31c783

Please sign in to comment.