Skip to content

Commit d6da074

Browse files
committed
add working directory
1 parent 305d8ef commit d6da074

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ jobs:
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 "/github/workspace/docs/_site/$file" "/github/workspace/docs/_site/$file" "$password"
47+
sudo npx pagecrypt "_site/$file" "/_site/$file" "$password"
4748
done
4849
# End encryption code.
4950

0 commit comments

Comments
 (0)