v1.0.4 #2
Workflow file for this run
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
| # Builds and publishes the Json5.VisualStudio VSIX extension to the GitHub release | |
| # whenever a release is published. | |
| # Requires: secrets.GH_TOKEN | |
| name: publish-vsix | |
| on: | |
| release: | |
| types: [prereleased, released] | |
| env: | |
| DOTNET_NOLOGO: true | |
| Configuration: Release | |
| PackOnBuild: true | |
| VersionLabel: ${{ github.ref }} | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| MSBUILDTERMINALLOGGER: auto | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| publish: | |
| runs-on: windows-latest | |
| steps: | |
| - name: 🤘 checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: ⚙ dotnet | |
| uses: devlooped/actions-dotnet-env@v1 | |
| - name: 🙏 build | |
| run: dotnet msbuild -r src/Json5.VisualStudio/Json5.VisualStudio.csproj -m:1 -bl:build.binlog | |
| - name: 🐛 logs | |
| uses: actions/upload-artifact@v4 | |
| if: runner.debug && always() | |
| with: | |
| name: logs | |
| path: '*.binlog' | |
| - name: 📦 release assets | |
| run: gh release upload ${{ github.ref_name }} bin/*.vsix --clobber |