Merge pull request #316 from hyphacoop/dependabot/github_actions/acti… #255
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- name: Install and build | |
run: | | |
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: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_book |