Skip to content

Commit e41c6f9

Browse files
authored
Merge pull request #24 from dasc-lab/passwd_test
Attempt to Fix Build Failure from Password
2 parents 9bee02d + 3b99408 commit e41c6f9

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/pages-with-encryption.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,32 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v3
30-
- name: Setup Pages
31-
uses: actions/configure-pages@v3
29+
uses: actions/checkout@v4
30+
# - name: Setup Pages
31+
# uses: actions/configure-pages@v3
3232
- name: Build with Jekyll
3333
uses: actions/jekyll-build-pages@v1
3434
with:
35-
source: ./
36-
destination: ./_site
35+
source: ./docs
36+
destination: ./docs/_site
3737

3838
# Begin encryption code.
3939
# This portion of the build job was written by Evan Baldonado (EvanBaldonado.com). Please do not remove this comment.
4040
# Note: this only encrypts .html pages and not any of the corresponding assets.
4141
- name: Encrypt pages with PageCrypt
42+
working-directory: ./docs
4243
run: |
4344
npm i -D pagecrypt
44-
cat docs/_protected_pages.txt | while read file password;
45+
cat _protected_pages.txt | while read file password;
4546
do
46-
sudo npx pagecrypt "_site/$file" "_site/$file" "$password"
47+
sudo npx pagecrypt "_site/$file" "/_site/$file" "$password"
4748
done
4849
# End encryption code.
4950

5051
- name: Upload artifact
5152
uses: actions/upload-pages-artifact@v3
53+
with:
54+
path: ./docs/_site
5255

5356
# Deployment job
5457
deploy:

docs/_protected_pages.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
docs/flylab/flylab.html flylab
2-
docs/flylab/calibration.html flylab
3-
docs/flylab/faqs.html flylab
4-
docs/flylab/object.html flylab
1+
flylab/flylab.html flylab
2+
flylab/calibration.html flylab
3+
flylab/faqs.html flylab
4+
flylab/object.html flylab

0 commit comments

Comments
 (0)