Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

Publish to Distributed Press

v1.0.0

Publish to Distributed Press

box

Publish to Distributed Press

Publishes a folder to a Distributed Press Instance

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Publish to Distributed Press

uses: hyphacoop/[email protected]

Learn more about this action in hyphacoop/actions-distributed-press

Choose a version

actions-distributed-press

Easily deploy a site to Distributed Press using GitHub Actions

Usage

Add 'Publish to Distributed Press' as a build step in your workflow file (e.g. .github/workflows/deploy.yaml)

...
jobs:
  deploy:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - name: Publish to Distributed Press 
        uses: hyphacoop/[email protected]
        with:
          publish_dir: public                     # (optional) defaults to /public
          dp_url: https://api.dp.chanterelle.xyz  # URL of Distributed Press API Instance (include http/https)
          refresh_token: xxxxx.yyyyy.zzzzz        # Refresh token 
          site_url: docs.distributed.press        # domain (without protocol)
          deploy_http: false
          deploy_hyper: true
          deploy_ipfs: true
      ...