File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff 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')) }}
You can’t perform that action at this time.
0 commit comments