From 9afe2c848753db0f1c786c6d8c5864488ef8a93e Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 4 Jan 2024 14:34:03 -0500 Subject: [PATCH] Added Distributed Press Publishing to GitHub Actions Workflow - Introduced a new step in the GitHub Actions workflow for deploying to Distributed Press Production - This step is conditional on the master branch and uses hyphacoop/actions-distributed-press@v1.1.0 - Configured to publish the contents of the ./_book directory - Included necessary configurations like Distributed Press URL, refresh token, and site URL --- .github/workflows/deploy-github-pages.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index bc3fb087..4fba19a1 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -23,6 +23,15 @@ jobs: npm install npx honkit build + - name: Publish to Distributed Press Production + if: ${{ github.ref == 'refs/heads/master' }} + uses: hyphacoop/actions-distributed-press@v1.1.0 + with: + publish_dir: ./_book + dp_url: https://api.distributed.press + refresh_token: ${{ secrets.DISTRIBUTED_PRESS_PRODUCTION_TOKEN}} + site_url: handbook.hypha.coop + - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: