Skip to content

Fixed telemetry app name #9

Fixed telemetry app name

Fixed telemetry app name #9

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: nuget/setup-nuget@v2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Update version
run: |
(Get-Content -Path src\LoggerVisualizer\LoggerVisualizer.csproj) |
ForEach-Object {$_ -Replace '<AssemblyVersion>0.1.0</AssemblyVersion>', '<AssemblyVersion>0.1.${{ github.run_number }}</AssemblyVersion>'} |
Set-Content -Path src\LoggerVisualizer\LoggerVisualizer.csproj
- name: Restore
run: nuget restore
- name: Build
run: msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
- uses: actions/upload-artifact@v3
with:
name: LoggerVisualizer.vsix
path: src\LoggerVisualizer\bin\Release\net8.0-windows\LoggerVisualizer.vsix
- name: Create Release
id: create_release
if: ${{ github.event_name == 'push' }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: 0.1.${{ github.run_number }}
release_name: Release 0.1.${{ github.run_number }}
draft: false
- name: Upload VSIX
if: ${{ github.event_name == 'push' }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src\LoggerVisualizer\bin\Release\net8.0-windows\LoggerVisualizer.vsix
asset_name: LoggerVisualizer.vsix
asset_content_type: application/zip