Skip to content

Commit 716d194

Browse files
committed
🔧 (main.yml): update deployment paths and comment out Jekyll build and SFTP upload steps
📝 (header.html, default.html): update URLs to use site.parent_url for consistency The deployment paths in the GitHub Actions workflow are updated to ensure the correct folder structure for documentation deployment. The Jekyll build and SFTP upload steps are commented out, likely for testing or to prevent unintended deployments during development. In the HTML files, URLs are updated to use `site.parent_url` for better maintainability and consistency across different environments.
1 parent 1f40247 commit 716d194

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ jobs:
128128
"Preview" {
129129
$Ring = "Preview";
130130
$WingetApplicationId = "nkdagility.azure-devops-migration-tools.Preview";
131-
$docs_deploy_folder = "./azure-devops-migration-tools/preview/";
132-
$docs_baseURL = "/learn/azure-devops-migration-tools/preview"
133-
$docs_baseURL_AFD = ""
131+
$docs_deploy_folder = "./azure-devops-migration-tools/";
132+
$docs_baseURL = "/learn/azure-devops-migration-tools"
133+
$docs_baseURL_AFD = "/learn/azure-devops-migration-tools"
134134
$AzureSitesEnvironment = "preview";
135135
$RunRelease = ( ('${{ inputs.ForceRelease }}' -eq 'true' ) -or ('${{ steps.filter.outputs.src }}' -eq 'true') -or ('${{ steps.filter.outputs.docs }}' -eq 'true') )
136136
}
@@ -388,11 +388,11 @@ jobs:
388388
- uses: igsekor/[email protected]
389389
id: spellcheck
390390
name: Spellcheck
391-
- name: Build with Jekyll
392-
# Outputs to the './_site' directory by default
393-
run: bundle exec jekyll build --baseurl "${{needs.Setup.outputs.nkdAgility_DocsBaseURL}}"
394-
env:
395-
JEKYLL_ENV: production
391+
# - name: Build with Jekyll
392+
# # Outputs to the './_site' directory by default
393+
# run: bundle exec jekyll build --baseurl "${{needs.Setup.outputs.nkdAgility_DocsBaseURL}}"
394+
# env:
395+
# JEKYLL_ENV: production
396396
# - name: Build Jekyll
397397
# uses: jerryjvl/jekyll-build-action@v1
398398
- uses: actions/upload-artifact@v4
@@ -591,20 +591,20 @@ jobs:
591591
shell: pwsh
592592
run: |
593593
Get-Item -Path .\
594-
- name: SFTP Upload ${{ (needs.Setup.outputs.nkdAgility_Ring) }}
595-
uses: Dylan700/sftp-upload-action@latest
596-
with:
597-
server: nakedalmweb.sftp.wpengine.com
598-
username: nakedalmweb-learn
599-
password: ${{ secrets.NKDAGILITY_LEARN_SFTP }}
600-
port: 2222
601-
# If true, outputs the results of the upload, without actually uploading.
602-
#dry-run: ${{ (needs.Setup.outputs.nkdAgility_Ring) == 'Canary' }}
603-
# A list of folders to upload in the format of `folder/ => upload_folder/`
604-
uploads: |
605-
./_site/ => ${{needs.Setup.outputs.nkdAgility_DocsDeployFolder}}
606-
# If true, any existing files in the remote upload directories are deleted.
607-
delete: false
594+
# - name: SFTP Upload ${{ (needs.Setup.outputs.nkdAgility_Ring) }}
595+
# uses: Dylan700/sftp-upload-action@latest
596+
# with:
597+
# server: nakedalmweb.sftp.wpengine.com
598+
# username: nakedalmweb-learn
599+
# password: ${{ secrets.NKDAGILITY_LEARN_SFTP }}
600+
# port: 2222
601+
# # If true, outputs the results of the upload, without actually uploading.
602+
# #dry-run: ${{ (needs.Setup.outputs.nkdAgility_Ring) == 'Canary' }}
603+
# # A list of folders to upload in the format of `folder/ => upload_folder/`
604+
# uploads: |
605+
# ./_site/ => ${{needs.Setup.outputs.nkdAgility_DocsDeployFolder}}
606+
# # If true, any existing files in the remote upload directories are deleted.
607+
# delete: false
608608

609609
- uses: actions/create-github-app-token@v1
610610
id: app-token

docs/_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h2>v#{GitVersion.SemVer}#</h2>
5656
<div class="col-lg-6 col-md-12">
5757
<p class="lead">{{site.description}}</p>
5858
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
59-
<a class="btn btn-nkdprimary" role="button" href="https://nkdagility.com/capabilities/azure-devops-migration-services/">Azure DevOps Migration Services</a>
59+
<a class="btn btn-nkdprimary" role="button" href="{{site.parent_url}}/capabilities/azure-devops-migration-services/">Azure DevOps Migration Services</a>
6060
</div>
6161
</div>
6262
</div>

docs/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</div>
5959
<div class="p-2 flex-fill d-none d-xl-block" style="min-width: 15vw;max-width: 20vw;">
6060
<div class="card mb-3">
61-
<img src="{{ site.baseurl }}/assets/images/Azure-DevOps-Migration-Tools-GithubSocial-Image.jpg" class="card-img-top" alt="...">
61+
<img src="{{site.baseurl}}/assets/images/Azure-DevOps-Migration-Tools-GithubSocial-Image.jpg" class="card-img-top" alt="...">
6262
<div class="card-body">
6363
<ul class="list-group list-group-flush">
6464
<li class="list-group-item d-flex justify-content-center align-items-center">

0 commit comments

Comments
 (0)