Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9d7647046 |
@@ -54,11 +54,11 @@ jobs:
|
||||
shell: pwsh
|
||||
run: |
|
||||
$ref = if ($env:GITHUB_REF) { $env:GITHUB_REF } else { $env:GITEA_REF }
|
||||
if ($ref -notlike "refs/tags/v*") {
|
||||
$tag = if ($env:GITHUB_REF_NAME) { $env:GITHUB_REF_NAME } else { Split-Path -Leaf $ref }
|
||||
if ($tag -notlike "v*") {
|
||||
Write-Host "Not a version tag; skipping release manifest."
|
||||
exit 0
|
||||
}
|
||||
$tag = Split-Path -Leaf $ref
|
||||
$artifactUrl = "https://gitea.officecom.cloud/officecom/oc-sentinel/releases/download/$tag/OCSentinelClient-win-x64.zip"
|
||||
./build/build-release-manifest.ps1 -ArtifactUrl $artifactUrl
|
||||
|
||||
@@ -76,7 +76,8 @@ jobs:
|
||||
shell: pwsh
|
||||
run: |
|
||||
$ref = if ($env:GITHUB_REF) { $env:GITHUB_REF } else { $env:GITEA_REF }
|
||||
if ($ref -notlike "refs/tags/v*") {
|
||||
$tag = if ($env:GITHUB_REF_NAME) { $env:GITHUB_REF_NAME } else { Split-Path -Leaf $ref }
|
||||
if ($tag -notlike "v*") {
|
||||
Write-Host "Not a version tag; skipping Gitea release publication."
|
||||
exit 0
|
||||
}
|
||||
@@ -88,7 +89,6 @@ jobs:
|
||||
throw "Gitea release environment is incomplete. Expected GITEA_TOKEN, repository, and server URL."
|
||||
}
|
||||
$baseUrl = "$serverUrl/api/v1/repos/$repository"
|
||||
$tag = Split-Path -Leaf $ref
|
||||
$releaseBody = @{
|
||||
tag_name = $tag
|
||||
target_commitish = "${{ github.sha }}"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<RootNamespace>OCSentinelCli</RootNamespace>
|
||||
<Product>OfficeCom Sentinel</Product>
|
||||
<Company>OfficeCom</Company>
|
||||
<Version>1.2.7</Version>
|
||||
<Version>1.2.8</Version>
|
||||
<AssemblyVersion>1.2.3.0</AssemblyVersion>
|
||||
<FileVersion>1.2.3.0</FileVersion>
|
||||
<InformationalVersion>1.2.3</InformationalVersion>
|
||||
|
||||
Reference in New Issue
Block a user