-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: fix VSIX package publishing crash
- Loading branch information
1 parent
d665268
commit a1b5f0e
Showing
2 changed files
with
7 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 }} |