This commit is contained in:
parent
a6fbdc24e9
commit
8f50360ea9
@ -11,8 +11,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
resources/build.ps1 build
|
resources/build.ps1 build
|
||||||
resources/build.ps1 deploy
|
resources/build.ps1 deploy
|
||||||
|
resources/build.ps1 changelog
|
||||||
- name: Upload Gitea Release
|
- name: Upload Gitea Release
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
body_path: build/CHANGELOG.txt
|
||||||
files: |-
|
files: |-
|
||||||
build/SmartLockerTools.zip
|
build/SmartLockerTools.zip
|
@ -16,6 +16,7 @@ $projectPath = Get-Location
|
|||||||
$buildPath = Join-Path -Path $projectPath -ChildPath "build"
|
$buildPath = Join-Path -Path $projectPath -ChildPath "build"
|
||||||
$deployPath = Join-Path -Path $buildPath -ChildPath "SmartLockerTools"
|
$deployPath = Join-Path -Path $buildPath -ChildPath "SmartLockerTools"
|
||||||
$zipFilePath = Join-Path -Path $buildPath -ChildPath "SmartLockerTools.zip"
|
$zipFilePath = Join-Path -Path $buildPath -ChildPath "SmartLockerTools.zip"
|
||||||
|
$changelogPath = Join-Path -Path $buildPath -ChildPath "CHANGELOG.txt"
|
||||||
|
|
||||||
function Build() {
|
function Build() {
|
||||||
if (!(Test-Path $buildPath\CMakeCache.txt)) {
|
if (!(Test-Path $buildPath\CMakeCache.txt)) {
|
||||||
@ -78,6 +79,13 @@ function Clean() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Changelog() {
|
||||||
|
$commit_message = git log -1 --pretty=format:"%B"
|
||||||
|
Write-Output "Latest commit message:"
|
||||||
|
Write-Output $commit_message
|
||||||
|
$commit_message | Out-File -FilePath $changelogPath -Encoding utf8
|
||||||
|
Write-Output "Commit message has been written to $changelogPath"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
@ -93,6 +101,9 @@ switch ($type) {
|
|||||||
"installer" {
|
"installer" {
|
||||||
Installer
|
Installer
|
||||||
}
|
}
|
||||||
|
"changelog" {
|
||||||
|
Changelog
|
||||||
|
}
|
||||||
"update" {
|
"update" {
|
||||||
UpdateServer
|
UpdateServer
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user