Skip to content

Commit d639fba

Browse files
committed
fix(double check): still works
1 parent aef67ed commit d639fba

File tree

1 file changed

+37
-143
lines changed

1 file changed

+37
-143
lines changed

.github/workflows/dev.yml

Lines changed: 37 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 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
33
# 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
45
name: Dev pipeline for test lint packaging artifact and gh-page trigger
56
on:
67
# Trigger the workflow for push and pull requests to all branches except 'main' and 'master'
@@ -129,12 +130,9 @@ jobs:
129130
echo "Semantic Release packages installed."
130131
npm ls --depth=0 # Debug: List installed packages
131132
132-
#qqqq now pipeline is in use maybe just use git tag
133133

134134

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
138136
- name: Run Semantic Version (None Blocking)
139137
env:
140138
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -174,15 +172,15 @@ jobs:
174172
echo "extracted version $full_version"
175173
echo "dev-semantic-version=$full_version" >> $GITHUB_OUTPUT
176174
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)"
186184

187185

188186
build-bcl-dev-package-and-publish:
@@ -230,111 +228,7 @@ jobs:
230228
--api-key ${{ secrets.PACKAGES_TOKEN }} \
231229
--skip-duplicate
232230
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+
338232

339233
Make-Blazor-Wiki-Artifact-Trigger-GH-Pages-In-BlazorWasmTest:
340234

@@ -408,43 +302,43 @@ jobs:
408302
409303
410304

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
418312

419313

420314

421-
#qqqq make release again made debug
315+
316+
# /p:INDEPENDENT_CLIENT_GH_PAGES=true \
317+
# env:
318+
# INDEPENDENT_CLIENT_GH_PAGES: true
422319
- name: Publish client using client release .csproj logic
423-
env:
424-
INDEPENDENT_CLIENT_GH_PAGES: true
425320
run: |
426321
dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \
427-
/p:INDEPENDENT_CLIENT_GH_PAGES=true \
428322
/p:BCLVersion=$BCL_VERSION \
429323
/p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \
430324
/p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \
431325
/p:GhPageRelease=true \
432326
/p:LocalPackagePath=$BCL_Source
433327
434328
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
448342

449343

450344

0 commit comments

Comments
 (0)