Skip to content

Commit ebc9411

Browse files
authored
Windows runner for publication (#51) (#52)
2 parents ae7f73e + 79b1784 commit ebc9411

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ on:
66

77
env:
88
VSIX_FILE_NAME: GitTreeFilter-${{ github.event.release.tag_name }}.vsix
9-
SOURCES_FILE_NAME: Sources.tar.gz
109

1110
jobs:
1211
publish:
1312
if: github.event.release.draft == false && github.event.release.prerelease == false
14-
runs-on: ubuntu-latest
13+
runs-on: windows-2022
1514

1615
steps:
1716
- uses: actions/checkout@v4
@@ -27,15 +26,16 @@ jobs:
2726
releaseId: ${{ github.event.release.id }}
2827
fileName: ${{ env.VSIX_FILE_NAME }}
2928
token: ${{ secrets.GITHUB_TOKEN }}
30-
tarBall: true
29+
zipBall: true
3130
extract: true
3231

3332
- name: Get sources root path
3433
id: get-sources-root
34+
shell: pwsh
3535
run: |
36-
TAG_NAME=${{ github.event.release.tag_name }}
37-
TAG_NAME=${TAG_NAME#v}
38-
echo "sources_root=GitTreeFilter-4-VisualStudio-${TAG_NAME}" >> $GITHUB_OUTPUT
36+
$tagName = "${{ github.event.release.tag_name }}"
37+
$tagName = $tagName -replace "^v"
38+
"sources_root=GitTreeFilter-4-VisualStudio-$tagName" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
3939
4040
- name: Publish extension to Marketplace
4141
uses: cezarypiatek/[email protected]

0 commit comments

Comments
 (0)