Skip to content

Commit

Permalink
Added Distributed Press Publishing to GitHub Actions Workflow
Browse files Browse the repository at this point in the history
- 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/[email protected]
- Configured to publish the contents of the ./_book directory
- Included necessary configurations like Distributed Press URL, refresh token, and site URL
  • Loading branch information
tripledoublev committed Jan 4, 2024
1 parent 914a6fc commit 9afe2c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ jobs:
npm install
npx honkit build
- name: Publish to Distributed Press Production
if: ${{ github.ref == 'refs/heads/master' }}
uses: hyphacoop/[email protected]
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:
Expand Down

0 comments on commit 9afe2c8

Please sign in to comment.