diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 68a523c7..b8b81727 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -17,7 +17,6 @@ jobs: runs-on: windows-2022 steps: - name: Validate version format - shell: pwsh run: | if (-not ("${{ inputs.version }}" -match '^v\d+\.\d+\.\d+[a-zA-Z0-9.-]*$')) { Write-Error "Version '${{ inputs.version }}' doesn't match expected format (e.g. v1.0.0)" @@ -51,11 +50,6 @@ jobs: if: matrix.platform == 'Windows64' run: 7z a -r LCE${{ matrix.platform }}.zip ./x64/${{ matrix.configuration }}/* "-x!*.ipdb" "-x!*.iobj" - - name: Stage artifacts - run: | - New-Item -ItemType Directory -Force -Path staging - Copy-Item LCE${{ matrix.platform }}.zip staging/ - - name: Stage artifacts run: | New-Item -ItemType Directory -Force -Path staging @@ -84,7 +78,7 @@ jobs: with: path: downloaded - - name: Read release notes + - name: Fetch release notes id: notes run: | $notesSource = "${{ inputs.notes }}" @@ -97,18 +91,11 @@ jobs: } catch { $body = $fallback } - } else { - if (Test-Path $notesSource) { - $body = Get-Content -Raw -Path $notesSource - if ([string]::IsNullOrWhiteSpace($body)) { $body = $fallback } - } else { - $body = $fallback - } } "description<