Skip to content

Commit

Permalink
Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Sep 12, 2019
1 parent cbad417 commit f2afe72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Copy-Item -Path "../$zip" -Destination $zip

$manifest.latest = $current
$manifest.url = $manifest.url.Replace($last, $current)
$manifest.php = '7.2.0'
ConvertTo-Json $manifest | Out-File -FilePath update_preview.json
Write-Host "Update source is prepared." -ForegroundColor Green

Expand All @@ -44,7 +45,7 @@ Write-Host "Update source is pushed to Azure Repos." -ForegroundColor Green
$githubToken = $env:GITHUB_TOKEN | ConvertTo-SecureString -AsPlainText -Force
$enChangelog = Get-Content "../resources/misc/changelogs/en/$current.md"
$changelog = "`n---`n" + $enChangelog
$release = New-GitHubRelease -Token $githubToken -Owner 'bs-community' -Repository 'blessing-skin-server' -TagName $current -ReleaseNote $changelog
$release = New-GitHubRelease -Token $githubToken -Owner 'bs-community' -Repository 'blessing-skin-server' -TagName $current -ReleaseNote $changelog -PreRelease
try {
New-GitHubReleaseAsset -Token $githubToken -Owner 'bs-community' -Repository 'blessing-skin-server' -ReleaseId $release.Id -Path $zip
} catch {
Expand Down

0 comments on commit f2afe72

Please sign in to comment.