Skip to content

Commit

Permalink
Update pre-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
natsurainko committed Dec 26, 2024
1 parent 5a062bd commit 078cd38
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ jobs:

- name: Create Release Information
run: |
$SHORT_SHA = $env:GITHUB_SHA.Substring(0, 7)
echo "SHORT_SHA=$SHORT_SHA" >> $env:GITHUB_ENV
[xml]$xmlContent = Get-Content -Path "Natsurainko.FluentLauncher\Package-Preview.appxmanifest"
$version = $xmlContent.Package.Identity.Version
Expand All @@ -173,7 +176,7 @@ jobs:
exit 1
}
$json = & .\$installerPath generateReleaseJson --updatePackageFiles "${{ github.workspace }}\updatePackage-x64.zip" "${{ github.workspace }}\updatePackage-arm64.zip" --stableVersion $version --commit "${{ env.SHORT_SHA }}"
$json = & .\$installerPath generateReleaseJson --updatePackageFiles "${{ github.workspace }}\updatePackage-x64.zip" "${{ github.workspace }}\updatePackage-arm64.zip" --stableVersion $version --commit "${{ env.SHORT_SHA }}" | Out-String
$jsonObject = $json | ConvertFrom-Json
$currentPreviewVersion = $jsonObject.currentPreviewVersion
Expand All @@ -183,8 +186,6 @@ jobs:
- name: Create Tag
run: |
$SHORT_SHA = $env:GITHUB_SHA.Substring(0, 7)
echo "SHORT_SHA=$SHORT_SHA" >> $env:GITHUB_ENV
git tag -a "pre-release-${{ env.currentPreviewVersion }}-${{ env.SHORT_SHA }}" -m "pre-release-${{ env.currentPreviewVersion }}-${{ env.SHORT_SHA }}"
git push origin "pre-release-${{ env.currentPreviewVersion }}-${{ env.SHORT_SHA }}"
Expand All @@ -196,4 +197,7 @@ jobs:
generateReleaseNotes: true
prerelease: true
tag: "pre-release-${{ env.currentPreviewVersion }}-${{ env.SHORT_SHA }}"
body: "``` json\n${{ env.json }}\n```"
body: |
``` json
${{ env.json }}
```

0 comments on commit 078cd38

Please sign in to comment.