Skip to content

Use upload-artifact v7 to publish VSIX directly (non-zipped)#5489

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/use-upload-architect-v7-to-publish-vsix
Draft

Use upload-artifact v7 to publish VSIX directly (non-zipped)#5489
Copilot wants to merge 2 commits intomainfrom
copilot/use-upload-architect-v7-to-publish-vsix

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

GitHub Actions now supports uploading single files as artifacts without ZIP wrapping. This makes .vsix files directly downloadable and installable from the Actions run page — no unzipping required.

Changes

  • upload-artifact@v4@v7 on both upload steps
  • archive: false on the VSIX upload — file is stored as-is, filename becomes the artifact name
  • Rename step added before upload to append the OS name (e.g., powershell-2024.5.0-ubuntu-latest.vsix), since archive: false derives artifact name from filename and all three matrix jobs would otherwise conflict
  • if-no-files-found: ignore added so the upload step is a no-op on build failures
  • name: parameter removed from VSIX upload (ignored when archive: false)
- name: Rename VSIX to include OS name
  if: always()
  shell: pwsh
  # archive: false uses the filename as the artifact name, so we need unique names across matrix jobs
  run: Get-Item out/*.vsix -ErrorAction SilentlyContinue | Rename-Item -NewName { $_.BaseName + '-${{ matrix.os }}' + $_.Extension }
  working-directory: vscode-powershell

- name: Upload build artifacts
  uses: actions/upload-artifact@v7
  if: always()
  with:
    # archive: false uploads the .vsix directly (no zip wrapper) using the filename as the artifact name
    path: "vscode-powershell/out/*.vsix"
    archive: false
    if-no-files-found: ignore

Copilot AI linked an issue May 6, 2026 that may be closed by this pull request
2 tasks
Copilot AI changed the title [WIP] Use upload-architect v7 to publish VSIX directly Use upload-artifact v7 to publish VSIX directly (non-zipped) May 6, 2026
Copilot AI requested a review from JustinGrote May 6, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use upload-architect v7 to publish VSIX directly

2 participants