Skip to content

v1.0.3

v1.0.3 #1

Workflow file for this run

# 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