|
1 | 1 | # Bringing together dev ymls |
2 | | -# qqqq TODO could share artifacts between jobs to reduce number of builds |
| 2 | +# TODO could share artifacts between jobs to reduce number of builds |
3 | 3 | # this should have just been BCLSource %LocalPackagePath% but set locally now |
| 4 | +# would have been better with github environments appsetting setting some of program.cs for wasm |
4 | 5 | name: Dev pipeline for test lint packaging artifact and gh-page trigger |
5 | 6 | on: |
6 | 7 | # Trigger the workflow for push and pull requests to all branches except 'main' and 'master' |
@@ -129,12 +130,9 @@ jobs: |
129 | 130 | echo "Semantic Release packages installed." |
130 | 131 | npm ls --depth=0 # Debug: List installed packages |
131 | 132 | |
132 | | - #qqqq now pipeline is in use maybe just use git tag |
133 | 133 |
|
134 | 134 |
|
135 | | - |
136 | | - #qqqq new approach version the branch |
137 | | - #qqqq do we really need to timestamp yeah but not in release so will grep only publish release there |
| 135 | + # do we really need to timestamp yeah but not in release so will grep only publish release there |
138 | 136 | - name: Run Semantic Version (None Blocking) |
139 | 137 | env: |
140 | 138 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@@ -174,15 +172,15 @@ jobs: |
174 | 172 | echo "extracted version $full_version" |
175 | 173 | echo "dev-semantic-version=$full_version" >> $GITHUB_OUTPUT |
176 | 174 |
|
177 | | - - name: debug github commands |
178 | | - run: | |
179 | | - echo "but we want more complex versioning currently so wont use tag but will for release qqqq" |
180 | | - echo "as we will name commits like fix(broken-thing): changed broken line, and branches fix/broken-thing we should be able to use them in package names" |
181 | | - echo "branch tag $(git describe --tags --abbrev=0)" |
182 | | - echo "branch name $(git branch --show-current)" |
183 | | - echo "Triggering Commit SHA: $GITHUB_SHA" |
184 | | - echo "Triggering Commit Subject: $(git log -1 --pretty=%s $GITHUB_SHA)" |
185 | | - echo "Commit Type/Scope: $(git log -1 --pretty=%s $GITHUB_SHA | cut -d':' -f1)" |
| 175 | + # - name: debug github commands |
| 176 | + # run: | |
| 177 | + # echo "but we want more complex versioning currently so wont use tag but will for release qqqq" |
| 178 | + # echo "as we will name commits like fix(broken-thing): changed broken line, and branches fix/broken-thing we should be able to use them in package names" |
| 179 | + # echo "branch tag $(git describe --tags --abbrev=0)" |
| 180 | + # echo "branch name $(git branch --show-current)" |
| 181 | + # echo "Triggering Commit SHA: $GITHUB_SHA" |
| 182 | + # echo "Triggering Commit Subject: $(git log -1 --pretty=%s $GITHUB_SHA)" |
| 183 | + # echo "Commit Type/Scope: $(git log -1 --pretty=%s $GITHUB_SHA | cut -d':' -f1)" |
186 | 184 |
|
187 | 185 |
|
188 | 186 | build-bcl-dev-package-and-publish: |
@@ -230,111 +228,7 @@ jobs: |
230 | 228 | --api-key ${{ secrets.PACKAGES_TOKEN }} \ |
231 | 229 | --skip-duplicate |
232 | 230 | |
233 | | - # build-bcl-dev-package-and-publish: |
234 | | - # if: success() #not needed but being explicit |
235 | | - # needs: [generate-dev-semantic-version, commitlint, gitguardian-scan,Unit-Tests,E2E-Tests, branch-name-check] |
236 | | - # runs-on: ubuntu-latest |
237 | | - # env: |
238 | | - # BCL_VERSION: ${{ needs.generate-dev-semantic-version.outputs.dev-package-version }} |
239 | | - # steps: |
240 | | - # - name: Checkout Code |
241 | | - # uses: actions/checkout@v4 |
242 | | - |
243 | | - # - name: Setup .NET |
244 | | - # uses: actions/setup-dotnet@v4 |
245 | | - # with: |
246 | | - # global-json-file: global.json |
247 | | - |
248 | | - # - name: Debug Version Output BCL var |
249 | | - # run: echo "Extracted Version $BCL_VERSION " |
250 | | - # #qqqq are we a commit behind check that we use the new generated version of the package |
251 | | - |
252 | | - # # the restore cant be given env values to override values like it can in build so we need to remove this file so we use the env values |
253 | | - # - name: Remove Local PackageSettings (CI Only) |
254 | | - # run: | |
255 | | - # rm -f PackageSettings.props.local |
256 | | - # ls |
257 | | - |
258 | | - # - name: Replace local environment variable in nuget config because cant provide it as a parameter |
259 | | - # run: sed -i "s|%LocalPackagePath%|$BCL_Local_Source|g" nuget.config |
260 | | - |
261 | | - |
262 | | - |
263 | | - # - name: Show updated nuget.config |
264 | | - # run: cat nuget.config |
265 | | - |
266 | | - # #qqqq ask binon about this |
267 | | - # - name: Clean lock files because the newly generated package file will superseed the locks |
268 | | - # run: | |
269 | | - # find . -name "packages.lock.json" -type f -exec rm -f {} \; |
270 | | - |
271 | | - # # - name: Restore NuGet Packages for Specifically the BCL Package Library Project |
272 | | - # # run: dotnet restore Package.BlazorComponentLibrary/Package.BlazorComponentLibrary.csproj |
273 | | - |
274 | | - # - name: echo qqqq here is the issue |
275 | | - # run: echo "qqqq here is the issue" |
276 | | - |
277 | | - # - name: Debug VersionInfo.cs |
278 | | - # run: | |
279 | | - # echo "before we build the project where could it be getting this value from? qqqq" |
280 | | - # cat Package.BlazorComponentLibrary/BCLVersion/VersionInfo.cs |
281 | | - |
282 | | - |
283 | | - # # why qqqq were not doing anything with the client here |
284 | | - # # - name: Restore NuGet Packages for Specifically the ClientProject |
285 | | - # # run: dotnet restore TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj |
286 | | - |
287 | | - # # - name: Debug package references |
288 | | - # # run: | |
289 | | - # # echo "Checking package references in client project..." |
290 | | - # # dotnet list TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj package |
291 | | - |
292 | | - # - name: Build and Pack BlazorComponentLibrary |
293 | | - # run: | |
294 | | - # dotnet build Package.BlazorComponentLibrary -c Release \ |
295 | | - # /p:BCLVersion=$BCL_VERSION \ |
296 | | - # /p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \ |
297 | | - # /p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE |
298 | | - |
299 | | - # #qqqq this works |
300 | | - # - name: Debug VersionInfo.cs |
301 | | - # run: | |
302 | | - # cat Package.BlazorComponentLibrary/BCLVersion/VersionInfo.cs |
303 | | - |
304 | | - # # - name: build whole solution now package built qqqqq |
305 | | - # # run: | |
306 | | - # # dotnet build GitPageBlazorWASM.sln -c Release \ |
307 | | - # # /p:BCLVersion=$BCL_VERSION \ |
308 | | - # # /p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \ |
309 | | - # # /p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \ |
310 | | - # # /p:LocalPackagePath=$BCL_Local_Source \ |
311 | | - # # /p:GhPageRelease=false |
312 | | - |
313 | | - # # - name: List Created Package |
314 | | - # # run: ls -l $BCL_Local_Source |
315 | | - |
316 | | - # # - name: echo path for artifact |
317 | | - # # run: echo "${{ env.NUPKG_OUTPUT_PATH }}" |
318 | | - |
319 | | - # - name: echo hint information about restore |
320 | | - # run: echo "if a hash error occurs for the bcl package the version number may need increasing or a clean step, hiy only does latest for packages no prerelease like nuget so version filtering is needed by consumers" |
321 | | - |
322 | | -# # qqqqq how is this using a local variable |
323 | | - # - name: DEBUGGING Publish to GitHub DEV BCL Packages |
324 | | - # run: | |
325 | | - # echo "Listing .nupkg files in the directory:" |
326 | | - # ls $BCL_Local_Source/*.nupkg |
327 | | - # echo "Unzipping .nupkg to inspect contents" |
328 | | - # unzip -l "$BCL_Local_Source/TELBlazorComponentLibrary.GitPageBlazorWasm.*.nupkg" # List contents of the .nupkg file |
329 | | - # echo "Displaying the contents of bclversion.txt" |
330 | | - # cat "Package.BlazorComponentLibrary/wwwroot/bclversion.txt" |
331 | | - |
332 | | - # - name: Publish to GitHub DEV BCL Packages |
333 | | - # run: | |
334 | | - # dotnet nuget push "$BCL_Local_Source/TELBlazorComponentLibrary.GitPageBlazorWasm.*.nupkg" \ |
335 | | - # --source "https://nuget.pkg.github.com/phil-nhs/index.json" \ |
336 | | - # --api-key ${{ secrets.PACKAGES_TOKEN }} \ |
337 | | - # --skip-duplicate |
| 231 | + |
338 | 232 |
|
339 | 233 | Make-Blazor-Wiki-Artifact-Trigger-GH-Pages-In-BlazorWasmTest: |
340 | 234 |
|
@@ -408,43 +302,43 @@ jobs: |
408 | 302 |
|
409 | 303 | |
410 | 304 |
|
411 | | - - name: qqqq is it because solution level not receive /p for project so need githun_env values |
412 | | - run: | |
413 | | - echo "BCLVersion=$BCL_VERSION" >> $GITHUB_ENV |
414 | | - echo "LocalPackagePath=$BCL_SOURCE" >> $GITHUB_ENV |
415 | | - echo "GITHUB_USERNAME=$GITHUB_USERNAME" >> $GITHUB_ENV |
416 | | - echo "UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE" >> $GITHUB_ENV |
417 | | - echo "GITHUB_PACKAGES_TOKEN=$PACKAGES_TOKEN" >> $GITHUB_ENV |
| 305 | + # - name: is it because solution level not receive /p for project so need githun_env values |
| 306 | + # run: | |
| 307 | + # echo "BCLVersion=$BCL_VERSION" >> $GITHUB_ENV |
| 308 | + # echo "LocalPackagePath=$BCL_SOURCE" >> $GITHUB_ENV |
| 309 | + # echo "GITHUB_USERNAME=$GITHUB_USERNAME" >> $GITHUB_ENV |
| 310 | + # echo "UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE" >> $GITHUB_ENV |
| 311 | + # echo "GITHUB_PACKAGES_TOKEN=$PACKAGES_TOKEN" >> $GITHUB_ENV |
418 | 312 |
|
419 | 313 |
|
420 | 314 |
|
421 | | -#qqqq make release again made debug |
| 315 | + |
| 316 | +# /p:INDEPENDENT_CLIENT_GH_PAGES=true \ |
| 317 | +# env: |
| 318 | +# INDEPENDENT_CLIENT_GH_PAGES: true |
422 | 319 | - name: Publish client using client release .csproj logic |
423 | | - env: |
424 | | - INDEPENDENT_CLIENT_GH_PAGES: true |
425 | 320 | run: | |
426 | 321 | dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \ |
427 | | - /p:INDEPENDENT_CLIENT_GH_PAGES=true \ |
428 | 322 | /p:BCLVersion=$BCL_VERSION \ |
429 | 323 | /p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \ |
430 | 324 | /p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \ |
431 | 325 | /p:GhPageRelease=true \ |
432 | 326 | /p:LocalPackagePath=$BCL_Source |
433 | 327 |
|
434 | 328 | |
435 | | - - name: Debug - List all files in docs folder |
436 | | - run: | |
437 | | - echo "Listing contents of ./docs directory" |
438 | | - ls -alh ./docs |
439 | | - echo "Listing contents of ./docs/wwwroot directory" |
440 | | - ls -alh ./docs/wwwroot || echo "wwwroot directory not found" |
441 | | - echo "Checking for bclversion.txt in ./docs" |
442 | | - if [ -f "./docs/bclversion.txt" ]; then |
443 | | - echo "Contents of ./docs/bclversion.txt:" |
444 | | - cat ./docs/bclversion.txt |
445 | | - else |
446 | | - echo "bclversion.txt not found in ./docs" |
447 | | - fi |
| 329 | + # - name: Debug - List all files in docs folder |
| 330 | + # run: | |
| 331 | + # echo "Listing contents of ./docs directory" |
| 332 | + # ls -alh ./docs |
| 333 | + # echo "Listing contents of ./docs/wwwroot directory" |
| 334 | + # ls -alh ./docs/wwwroot || echo "wwwroot directory not found" |
| 335 | + # echo "Checking for bclversion.txt in ./docs" |
| 336 | + # if [ -f "./docs/bclversion.txt" ]; then |
| 337 | + # echo "Contents of ./docs/bclversion.txt:" |
| 338 | + # cat ./docs/bclversion.txt |
| 339 | + # else |
| 340 | + # echo "bclversion.txt not found in ./docs" |
| 341 | + # fi |
448 | 342 |
|
449 | 343 |
|
450 | 344 |
|
|
0 commit comments