Skip to content

Commit a28f2c1

Browse files
committed
Add publish workflow and update README badges
1 parent ba05770 commit a28f2c1

4 files changed

Lines changed: 58 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish to PowerShell Gallery
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
publish:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Install PowerShell 7
17+
uses: PowerShell/PowerShell@v2
18+
with:
19+
version: '7.4.x'
20+
21+
- name: Publish module to PowerShell Gallery
22+
shell: pwsh
23+
env:
24+
NUGET_KEY: ${{ secrets.PSGALLERY_KEY }}
25+
run: |
26+
Write-Host "Publishing VSCode-Updater to PowerShell Gallery..."
27+
28+
# Ensure module manifest exists
29+
if (-not (Test-Path "./VSCode-Updater.psd1")) {
30+
Write-Error "Module manifest not found. Expected VSCode-Updater.psd1 in repo root."
31+
exit 1
32+
}
33+
34+
# Publish
35+
Publish-Module `
36+
-Path . `
37+
-NuGetApiKey $env:NUGET_KEY `
38+
-ErrorAction Stop
39+
40+
Write-Host "Publish complete."

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
# VSCode-Updater
22

3-
![PowerShell](https://img.shields.io/badge/PowerShell-7.6%2B-blue)
4-
![Platform](https://img.shields.io/badge/Platform-Windows-lightgrey)
5-
![Status](https://img.shields.io/badge/Status-Active-success)
6-
![License](https://img.shields.io/badge/License-MIT-green)
7-
![Last Commit](https://img.shields.io/github/last-commit/Linktech-Engineering-LLC/VSCode-Updater)
3+
<!-- Linktech Engineering Suite -->
4+
![Linktech Engineering Tools Suite](https://img.shields.io/badge/Linktech%20Engineering-Tools%20Suite-0052CC?style=flat-square&logo=powershell)
5+
6+
<!-- PowerShell Gallery -->
7+
![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/VSCode-Updater?style=flat-square)
8+
![PowerShell Gallery Downloads](https://img.shields.io/powershellgallery/dt/VSCode-Updater?style=flat-square)
9+
10+
<!-- GitHub -->
11+
![GitHub Release](https://img.shields.io/github/v/release/Linktech-Engineering-LLC/VSCode-Updater?style=flat-square)
12+
![Publish Workflow](https://img.shields.io/github/actions/workflow/status/Linktech-Engineering-LLC/VSCode-Updater/publish.yml?label=publish&style=flat-square)
13+
![Last Commit](https://img.shields.io/github/last-commit/Linktech-Engineering-LLC/VSCode-Updater?style=flat-square)
14+
15+
<!-- Environment -->
16+
![PowerShell](https://img.shields.io/badge/PowerShell-7.6%2B-blue?style=flat-square)
17+
![Platform](https://img.shields.io/badge/Platform-Windows-lightgrey?style=flat-square)
18+
![Status](https://img.shields.io/badge/Status-Active-success?style=flat-square)
19+
![License](https://img.shields.io/badge/License-MIT-green?style=flat-square)
820

921
A deterministic, operator‑grade PowerShell module for safely updating Visual Studio Code on Windows.
1022
Provides full logging, cleanup routines, installer caching, and a multi‑lane watchdog to detect and recover from installer stalls.

VSCode-Updater.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function Update-VSCode {
145145
switch ($result) {
146146
"Success" {
147147
Write-Log "[WATCHDOG] Installer exited normally"
148-
Write-Log "----- $scriptName ended (exit 0) -----"
148+
Write-Log "----- $scriptName ended (exit 0) (Normal)-----"
149149
return 0
150150
}
151151

0 commit comments

Comments
 (0)