Skip to content

Commit 6c06660

Browse files
authored
Merge pull request #3 from ByteGuard-HQ/refactor/mess-cleanup
mess cleanup
2 parents 860ebe5 + 7ca9af7 commit 6c06660

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
env:
3131
DOTNET_CLI_TELEMTRY_OPTOUT: true
3232
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
33+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3334
shell: pwsh
3435
run: |
3536
./Build.ps1

Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ try {
2121

2222
$branch = @{ $true = $env:CI_TARGET_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$NULL -ne $env:CI_TARGET_BRANCH];
2323
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:CI_BUILD_NUMBER, 10); $false = "local" }[$NULL -ne $env:CI_BUILD_NUMBER];
24-
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)) -replace '([^a-zA-Z0-9\-]*)', '')-$revision"}[$branch -eq "main" -and $revision -ne "local"]
24+
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)) -replace '([^a-zA-Z0-9\-]*)', '')-$revision"}[$branch -eq "master" -and $revision -ne "local"]
2525
$commitHash = $(git rev-parse --short HEAD)
2626
$buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($commitHash)" }[$suffix -ne ""]
2727

@@ -59,7 +59,7 @@ try {
5959

6060
if ($env:NUGET_API_KEY) {
6161
# GitHub Actions will only supply this to branch builds and not PRs. We publish
62-
# builds from any branch this action targets (i.e. main and dev).
62+
# builds from any branch this action targets (i.e. master and dev).
6363

6464
Write-Output "build: Publishing NuGet package"
6565

Directory.Version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>0.1.0</VersionPrefix>
3+
<VersionPrefix>1.0.0</VersionPrefix>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)