Skip to content

Commit

Permalink
Updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
madskristensen committed Dec 20, 2021
1 parent fedc7a6 commit d0ccffd
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,23 @@ name: "Build"

on:
push:
branches:
- master
paths-ignore:
- '**/*.md'
branches: [master]
pull_request:
branches:
- master
paths-ignore:
- '**/*.md'
branches: [master]
workflow_dispatch:
branches:
- master
paths-ignore:
- '**/*.md'
branches: [master]

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

steps:
- uses: actions/checkout@v2
Expand All @@ -39,11 +35,11 @@ jobs:
id: vsix_version
uses: timheuer/vsix-version-stamp@v1
with:
manifest-file: src\source.extension.vsixmanifest
vsix-token-source-file: src\source.extension.cs
manifest-file: ${{ env.VsixManifestPath }}
vsix-token-source-file: ${{ env.VsixManifestSourcePath }}

- name: Build
run: msbuild /p:Configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m -restore /p:OutDir=../_built
run: msbuild /v:m -restore /p:OutDir=../_built

- name: Setup test
uses: darenm/Setup-VSTest@v1
Expand Down

0 comments on commit d0ccffd

Please sign in to comment.