fix(vsix): link icon and license from root resources (#41) #19
This file contains hidden or 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: 'Build and Deploy' | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, reopened] | |
| push: | |
| branches: | |
| - main | |
| tags-ignore: | |
| - '[0-9]+.[0-9]+.[0-9]+.[0-9]+' | |
| jobs: | |
| Release-Build-and-Deploy: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: microsoft/setup-msbuild@v2 | |
| - uses: nuget/setup-nuget@v2 | |
| - name: 1. Versioning Release | |
| id: step-version | |
| uses: CodingWithCalvin/GHA-VSVsixVersioner@v1 | |
| with: | |
| extension-manifest-file: 'src/CodingWithCalvin.GitRanger/source.extension.vsixmanifest' | |
| extension-source-file: 'src/CodingWithCalvin.GitRanger/source.extension.cs' | |
| - name: 2. Restoring Packages | |
| run: nuget restore CodingWithCalvin.GitRanger.sln | |
| - name: 3. Building Project | |
| run: msbuild 'src/CodingWithCalvin.GitRanger/CodingWithCalvin.GitRanger.csproj' /p:configuration='Release' /p:DeployExtension=False | |
| - name: 4. Create Information File | |
| uses: jsdaniell/[email protected] | |
| with: | |
| name: 'src/CodingWithCalvin.GitRanger/bin/Release/CodingWithCalvin.GitRanger.info' | |
| json: '{"sha":"${{ github.sha }}", "version":"${{ steps.step-version.outputs.version }}"}' | |
| - name: 5. Publishing Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: | | |
| src/CodingWithCalvin.GitRanger/bin/Release/CodingWithCalvin.GitRanger.info | |
| src/CodingWithCalvin.GitRanger/bin/Release/CodingWithCalvin.GitRanger.vsix |