Skip to content

changing options grouping #32

changing options grouping

changing options grouping #32

Workflow file for this run

name: "Build"
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
workflow_dispatch:
branches:
- main
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
jobs:
build:
outputs:
version: ${{ steps.vsix_version.outputs.version-number }}
name: Build
runs-on: windows-2022
env:
Configuration: Release
DeployExtension: False
VsixManifestPath: AddActionsWorkflow\source.extension.vsixmanifest
VsixManifestSourcePath: AddActionsWorkflow\source.extension.cs
steps:
- uses: actions/checkout@v3
- name: Setup .NET build dependencies
uses: timheuer/bootstrap-dotnet@v1
with:
nuget: 'false'
sdk: 'false'
msbuild: 'true'
- name: Increment VSIX version
id: vsix_version
uses: timheuer/vsix-version-stamp@v1
with:
manifest-file: ${{ env.VsixManifestPath }}
vsix-token-source-file: ${{ env.VsixManifestSourcePath }}
- name: Build
run: msbuild /v:m -restore /p:OutDir=\_built
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}.vsix
path: /_built/**/*.vsix
publish:
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
needs: build
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Download Package artifact
uses: actions/download-artifact@v3
with:
name: ${{ github.event.repository.name }}.vsix
- name: Upload to Open VSIX
uses: timheuer/openvsixpublish@v1
with:
vsix-file: ${{ github.event.repository.name }}.vsix
- name: Tag and Release
id: tag_release
uses: softprops/action-gh-release@v1
with:
body: Release ${{ needs.build.outputs.version }}
tag_name: ${{ needs.build.outputs.version }}
generate_release_notes: true
files: |
**/*.vsix
- name: Publish extension to Marketplace
#if: ${{ contains(github.event.head_commit.message, '[release]') }}
uses: cezarypiatek/[email protected]
with:
extension-file: '${{ github.event.repository.name }}.vsix'
publish-manifest-file: 'vs-publish.json'
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}