Skip to content

Commit

Permalink
CI: fix VSIX package publishing crash
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyRybalkinItr committed Jun 4, 2024
1 parent d665268 commit a1b5f0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/playground.yml

This file was deleted.

11 changes: 7 additions & 4 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Add MSBuild to PATH
uses: microsoft/[email protected]
Expand All @@ -31,11 +33,12 @@ jobs:

- name: Get version number
id: get-version
run: Set-Content '$GITHUB_OUTPUT' -Value "VERSION=$(git describe --abbrev=0)"
run: |
"package-version=$(git describe --abbrev=0)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: Publish VSIX package
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.get-version.outputs.VERSION }}
files: ./src/StyleCopPlus.Vsix/bin/Release/net472/StyleCopPlus.vsix
name: ${{ steps.get-version.outputs.VERSION }}
tag_name: ${{ steps.get-version.outputs.package-version }}
files: ./src/StyleCopPlus.Vsix/bin/Release/net472/StyleCopPlusVsix.vsix
name: ${{ steps.get-version.outputs.package-version }}

0 comments on commit a1b5f0e

Please sign in to comment.