From 97431acce71598df4dc47a150f00c48901fdf924 Mon Sep 17 00:00:00 2001 From: Grzegorz Gurgul Date: Tue, 31 Dec 2024 09:48:23 +0100 Subject: [PATCH] Fix --- .github/workflows/publish.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8d2c465..7971701 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,29 +22,28 @@ jobs: uses: fregante/setup-git-user@v1 - uses: robinraju/release-downloader@v1 + id: download-release-assets with: releaseId: ${{ github.event.release.id }} fileName: ${{ env.VSIX_FILE_NAME }} token: ${{ secrets.GITHUB_TOKEN }} zipBall: true - extract: true + extract: false # This uses some weird naming pattern for the extracted content - name: List all files recursively + id: extract-release-assets shell: pwsh run: | + Expand-Archive -Path ${{ fromJson(steps.download-release-assets.outputs.downloaded_files)[1] }} -DestinationPath . -PassThru Get-ChildItem -Recurse | ForEach-Object { Write-Host $_.FullName } - - name: Get sources root path - id: get-sources-root - shell: pwsh - run: | $tagName = "${{ github.event.release.tag_name }}" $tagName = $tagName -replace "^v" - "sources_root=GitTreeFilter-4-VisualStudio-$tagName/GitTreeFilter-4-VisualStudio-$tagName" | Out-File -FilePath $env:GITHUB_OUTPUT -Append + "sources_root=GitTreeFilter-4-VisualStudio-$tagName" | Out-File -FilePath $env:GITHUB_OUTPUT -Append - name: Publish extension to Marketplace uses: cezarypiatek/VsixPublisherAction@0.2 with: extension-file: ${{ env.VSIX_FILE_NAME }} - publish-manifest-file: '${{ steps.get-sources-root.outputs.sources_root }}/GitTreeFilter/vs-publish.json' + publish-manifest-file: '${{ steps.extract-release-assets.outputs.sources_root }}/GitTreeFilter/vs-publish.json' personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}