Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Publish only this version's files in a release

KnifeLemonce130f13fdb8
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6e082b1b..d9936ddc 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -104,6 +104,15 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$version = '${{ steps.version.outputs.value }}'
- # assets.win.json only describes the local build folder.
- $files = Get-ChildItem Releases -File | Where-Object Name -ne 'assets.win.json' | ForEach-Object FullName
+ # Releases/ also holds the previous version's full package, downloaded only to build the delta: publish this
+ # version's files, and trim the update feed to them so the release lists only what it carries.
+ $feedPath = 'Releases/releases.win.json'
+ $feed = Get-Content $feedPath -Raw | ConvertFrom-Json
+ $feed.Assets = @($feed.Assets | Where-Object Version -eq $version)
+ $feed | ConvertTo-Json -Depth 5 -Compress | Set-Content $feedPath -Encoding utf8 -NoNewline
+ $pattern = "-$([regex]::Escape($version))-"
+ (Get-Content Releases/RELEASES) | Where-Object { $_ -match $pattern } | Set-Content Releases/RELEASES -Encoding utf8BOM
+ $files = Get-ChildItem Releases -File |
+ Where-Object { $_.Name -in 'releases.win.json', 'RELEASES' -or $_.Name -like "Filee-$version-*" } |
+ ForEach-Object FullName
gh release create '${{ github.ref_name }}' --title "Filee $version" --generate-notes --verify-tag @files