Skip to content

Commit 36c41e5

Browse files
committed
🔧 (main.yml): remove commented-out Jekyll build and SFTP upload steps
Remove unused and commented-out steps related to Jekyll build and SFTP upload in the GitHub Actions workflow. This cleanup reduces clutter and improves readability of the workflow file, making it easier to maintain and understand. The changes also ensure that only relevant and active steps are present in the workflow, which helps in avoiding confusion during future updates or debugging.
1 parent 716d194 commit 36c41e5

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -388,17 +388,6 @@ 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
396-
# - name: Build Jekyll
397-
# uses: jerryjvl/jekyll-build-action@v1
398-
- uses: actions/upload-artifact@v4
399-
with:
400-
name: AzureDevOpsMigrationTools-Site
401-
path: ./_site/**/*
402391
- name: Build with Jekyll 2
403392
# Outputs to the './_site' directory by default
404393
run: bundle exec jekyll build --destination ./_site2/ --baseurl "${{needs.Setup.outputs.nkdAgility_DocsBaseURL_AFD}}"
@@ -585,38 +574,18 @@ jobs:
585574
- name: Download a single artifact
586575
uses: actions/download-artifact@v4
587576
with:
588-
name: AzureDevOpsMigrationTools-Site
589-
path: ./_site
577+
name: AzureDevOpsMigrationTools-Site2
578+
path: ./_site2
590579
- name: "Find files"
591580
shell: pwsh
592581
run: |
593582
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
608-
609583
- uses: actions/create-github-app-token@v1
610584
id: app-token
611585
with:
612586
app-id: ${{ secrets.NKDAGILITY_BOT_APP_ID }}
613587
private-key: ${{ secrets.NKDAGILITY_BOT_CLIENTSECRET }}
614588

615-
- name: Download a single artifact
616-
uses: actions/download-artifact@v4
617-
with:
618-
name: AzureDevOpsMigrationTools-Site2
619-
path: ./_site2
620589
- name: Build and Deploy
621590
uses: Azure/static-web-apps-deploy@v1
622591
id: azureDeploy

0 commit comments

Comments
 (0)