Skip to content

Release v1.15.0

Release v1.15.0 #5

Workflow file for this run

name: PublishRelease
on:
release:
types: [published]
env:
VSIX_FILE_NAME: GitTreeFilter-${{ github.event.release.tag_name }}.vsix
jobs:
publish:
if: github.event.release.draft == false && github.event.release.prerelease == false
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
ref: refs/tags/${{ github.event.release.tag_name }}
fetch-depth: '0'
- name: Set up Git actions user
uses: fregante/setup-git-user@v1
- uses: robinraju/release-downloader@v1
with:
releaseId: ${{ github.event.release.id }}
fileName: ${{ env.VSIX_FILE_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}
zipBall: true
extract: true
- name: List all files recursively
shell: pwsh
run: |
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
- name: Publish extension to Marketplace
uses: cezarypiatek/[email protected]
with:
extension-file: ${{ env.VSIX_FILE_NAME }}
publish-manifest-file: '${{ steps.get-sources-root.outputs.sources_root }}/GitTreeFilter/vs-publish.json'
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}