Skip to content

Commit 1e0acb8

Browse files
committed
build-stack: create IntelliFactory.snk
1 parent 9860f9b commit 1e0acb8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build-stack.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,28 @@ jobs:
109109
git config --global user.email "[email protected]"
110110
git config --global user.name "IntelliFactory CI"
111111
112+
- name: Create IntelliFactory.snk
113+
shell: pwsh
114+
run: |
115+
$bytes = [Convert]::FromBase64String(${{ secrets.INTELLIFACTORY_KEY_BASE64 }})
116+
$snkPath = $snkPath = Join-Path -Path $PWD -ChildPath "keys/IntelliFactory.snk"
117+
118+
# Ensure the directory exists
119+
$dir = Split-Path $snkPath
120+
if (-not (Test-Path $dir)) {
121+
New-Item -ItemType Directory -Path $dir | Out-Null
122+
}
123+
124+
# Write the decoded bytes
125+
[System.IO.File]::WriteAllBytes($snkPath, $bytes)
126+
127+
# Set environment variable to current folder
128+
"INTELLIFACTORY=$PWD" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
129+
130+
# Log
131+
Write-Host "SNK file written to: $snkPath"
132+
Write-Host "INTELLIFACTORY set to: $PWD"
133+
112134
- name: Check out WS Core
113135
uses: actions/checkout@v3
114136
if: ${{ success() && github.event.inputs.coreBranch == '' && (github.event.inputs.stackKind == 'all' || contains(github.event.inputs.stackKind, 'core')) }}

0 commit comments

Comments
 (0)