We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89605a0 commit edfc245Copy full SHA for edfc245
1 file changed
.github/workflows/publish.yml
@@ -186,6 +186,18 @@ jobs:
186
if ($testResults.FailedCount -gt 0) {
187
throw "Tests failed. Cannot publish to PowerShell Gallery."
188
}
189
+
190
+ - name: Inject Values into Module
191
+ shell: pwsh
192
+ env:
193
+ CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
194
+ CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
195
+ run: |
196
+ $file = "./src/public/Initialize-Blogger.ps1"
197
+ $content = Get-Content $file -Raw
198
+ $content = $content -replace "<<CLIENT_ID>>", $env:CLIENT_ID
199
+ $content = $content -replace "<<CLIENT_SECRET>>", $env:CLIENT_SECRET
200
+ $content | Set-Content -Path $file -Force
201
202
- name: Publish to PowerShell Gallery
203
shell: pwsh
0 commit comments