Update dependency Microsoft.VSSDK.BuildTools to v17.9.3184 #245
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: VSIX | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- '.github/workflows/**' | |
- '!.github/workflows/vsix.yml' | |
- 'images/**' | |
- 'README.md' | |
- 'LICENSE' | |
- 'src/publish-manifest.json' | |
- 'src/publish.ps1' | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
env: | |
VERSION: 1.7.0.${{ github.run_number }} | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update Version | |
run: ((Get-Content -Path VSPackage/source.extension.vsixmanifest -Raw) -Replace "1.0.0", "${{ env.VERSION }}") | Set-Content -Path VSPackage/source.extension.vsixmanifest | |
working-directory: src | |
shell: pwsh | |
- name: Restore | |
run: dotnet restore | |
working-directory: src | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
- name: Build | |
run: msbuild /property:Configuration=Release /t:Rebuild | |
working-directory: src | |
- name: Move build output | |
run: mv src/VSPackage/bin/Release/ResWFileCodeGenerator.vsix ResWFileCodeGenerator-${{ env.VERSION }}.vsix | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts | |
path: | | |
*.vsix | |
docs/Marketplace.md | |
- name: Publish to Open VSIX Gallery | |
if: github.ref == 'refs/heads/master' | |
run: | | |
(new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex | |
Vsix-PushArtifacts | |
Vsix-PublishToGallery -path ResWFileCodeGenerator-${{ env.VERSION }}.vsix -readmeUrl https://raw.githubusercontent.com/christianhelle/reswcodegen/master/docs/Marketplace.md | |
shell: pwsh | |
continue-on-error: true |