From 7b1a96f84f54ffdf6601d9bcd858ac06eb743ef8 Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Sat, 31 Aug 2024 21:24:52 -0700 Subject: [PATCH] Encrypt people page (#45) --- .github/workflows/deploy.yml | 8 ++++++++ book/index.md | 1 + book/people.md | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 book/people.md diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 209dff9..d106a45 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,12 +36,17 @@ jobs: - name: Checkout uses: actions/checkout@v3 - uses: actions/setup-python@v2 + - uses: actions/setup-node@v2 - name: Setup Pages uses: actions/configure-pages@v2 # Install dependencies - run: pip install -r requirements.txt + # This lets us encrypt a page with a password + - name: Install staticrypt + run: | + npm install -g staticrypt # Download the latest AirTable community data - run: python book/scripts/download_airtable_data.py @@ -64,6 +69,9 @@ jobs: env: AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }} + # Encrypt pages that are only meant for team consumption + - run: staticrypt book/_build/dirhtml/people/index.html -p ${{ secrets.STATICRYPT_PASSWORD }} -d book/_build/dirhtml/people/ --short; + # Upload to GH Pages - name: Upload artifact uses: actions/upload-pages-artifact@v1 diff --git a/book/index.md b/book/index.md index dfe4a66..50cd811 100644 --- a/book/index.md +++ b/book/index.md @@ -35,4 +35,5 @@ Below is a breakdown of the categories above with more information about their s cloud upstream finances +people ``` diff --git a/book/people.md b/book/people.md new file mode 100644 index 0000000..c435091 --- /dev/null +++ b/book/people.md @@ -0,0 +1,3 @@ +# People operations + +This is just a test to see if the page is properly encrypted!