From d1b3f5fc527aa829b2e2d32e38e904e1c8ba0bde Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 23 Jun 2025 12:23:25 -0400 Subject: [PATCH 1/5] update path for building site --- .github/workflows/pages-with-encryption.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages-with-encryption.yml b/.github/workflows/pages-with-encryption.yml index 648e649..776c72a 100644 --- a/.github/workflows/pages-with-encryption.yml +++ b/.github/workflows/pages-with-encryption.yml @@ -32,7 +32,7 @@ jobs: - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: - source: ./ + source: ./docs destination: ./_site # Begin encryption code. From 6f7db4ef6810ac8c7f1442f2877f1aa95a6d9134 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 23 Jun 2025 13:06:51 -0400 Subject: [PATCH 2/5] fixing paths --- .github/workflows/pages-with-encryption.yml | 10 +++++----- docs/_protected_pages.txt | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pages-with-encryption.yml b/.github/workflows/pages-with-encryption.yml index 776c72a..be0a621 100644 --- a/.github/workflows/pages-with-encryption.yml +++ b/.github/workflows/pages-with-encryption.yml @@ -26,14 +26,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/checkout@v4 + # - name: Setup Pages + # uses: actions/configure-pages@v3 - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: source: ./docs - destination: ./_site + destination: ./docs/_site # Begin encryption code. # This portion of the build job was written by Evan Baldonado (EvanBaldonado.com). Please do not remove this comment. @@ -43,7 +43,7 @@ jobs: npm i -D pagecrypt cat docs/_protected_pages.txt | while read file password; do - sudo npx pagecrypt "_site/$file" "_site/$file" "$password" + sudo npx pagecrypt "/docs/_site/$file" "/docs/_site/$file" "$password" done # End encryption code. diff --git a/docs/_protected_pages.txt b/docs/_protected_pages.txt index 733a1ce..378dfe2 100644 --- a/docs/_protected_pages.txt +++ b/docs/_protected_pages.txt @@ -1,4 +1,4 @@ -docs/flylab/flylab.html flylab -docs/flylab/calibration.html flylab -docs/flylab/faqs.html flylab -docs/flylab/object.html flylab \ No newline at end of file +flylab/flylab.html flylab +flylab/calibration.html flylab +flylab/faqs.html flylab +flylab/object.html flylab \ No newline at end of file From 305d8eff17fb55ac5c48bb49e7c5df8cc4c5b103 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 23 Jun 2025 13:09:38 -0400 Subject: [PATCH 3/5] editing paths --- .github/workflows/pages-with-encryption.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages-with-encryption.yml b/.github/workflows/pages-with-encryption.yml index be0a621..7c8c685 100644 --- a/.github/workflows/pages-with-encryption.yml +++ b/.github/workflows/pages-with-encryption.yml @@ -43,7 +43,7 @@ jobs: npm i -D pagecrypt cat docs/_protected_pages.txt | while read file password; do - sudo npx pagecrypt "/docs/_site/$file" "/docs/_site/$file" "$password" + sudo npx pagecrypt "/github/workspace/docs/_site/$file" "/github/workspace/docs/_site/$file" "$password" done # End encryption code. From d6da0743f8887391c37fccc60f27af4b9eec6f51 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 23 Jun 2025 13:15:27 -0400 Subject: [PATCH 4/5] add working directory --- .github/workflows/pages-with-encryption.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pages-with-encryption.yml b/.github/workflows/pages-with-encryption.yml index 7c8c685..f86f3aa 100644 --- a/.github/workflows/pages-with-encryption.yml +++ b/.github/workflows/pages-with-encryption.yml @@ -39,11 +39,12 @@ jobs: # This portion of the build job was written by Evan Baldonado (EvanBaldonado.com). Please do not remove this comment. # Note: this only encrypts .html pages and not any of the corresponding assets. - name: Encrypt pages with PageCrypt + working-directory: ./docs run: | npm i -D pagecrypt - cat docs/_protected_pages.txt | while read file password; + cat _protected_pages.txt | while read file password; do - sudo npx pagecrypt "/github/workspace/docs/_site/$file" "/github/workspace/docs/_site/$file" "$password" + sudo npx pagecrypt "_site/$file" "/_site/$file" "$password" done # End encryption code. From 3b9940871fcfc1aab0750090831dc935e2a35471 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 23 Jun 2025 13:19:41 -0400 Subject: [PATCH 5/5] edit path for artifact --- .github/workflows/pages-with-encryption.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pages-with-encryption.yml b/.github/workflows/pages-with-encryption.yml index f86f3aa..1828764 100644 --- a/.github/workflows/pages-with-encryption.yml +++ b/.github/workflows/pages-with-encryption.yml @@ -50,6 +50,8 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 + with: + path: ./docs/_site # Deployment job deploy: