Skip to content

Commit

Permalink
docs: update publish site instructions in send post section
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshthite authored Dec 12, 2024
1 parent b54be60 commit 73b24aa
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pages/dp-cli/send-posts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ If you only plan to use the DP API for static file publishing, generating a keyp

This will generate a keypair and save it to your `.dprc` configuration file.

### ⚠️ Publish the Staticpub Template
Make sure your site is published before registering an actor and sending a post, as this is a prerequisite for proper functionality and includes your public key for signing.

Please follow the steps from this section:
- [Distributed Press Setup](#distributed-press-setup-publish-website)

Additionally, ensure that the WebFinger `/.well-known` file is correctly published for your domain. To automate this process, you can set up [GitHub Actions](https://docs.distributed.press/deployment/github-actions/) in the workflows directory.

Alternatively, you can use the staticpub's [publish.yml](https://github.com/hyphacoop/staticpub.distributed.press/blob/main/.github/workflows/publish.yml). Be sure to update the `site_url` and add your secret `DISTRIBUTED_PRESS_TOKEN` in the workflow configuration.

### Register Your Actor

Register your ActivityPub actor with the Social Inbox:
Expand All @@ -83,11 +93,6 @@ dp-cli register-actor

This will register your actor with the Social Inbox and save the details to your configuration.

### Publish the Staticpub Template

Please follow the steps from this section:
- [Publish Site With Distributed Press API](/sdk/publish-site.mdx)

### Send a Post to Followers

Published the template? Now, let's send a post to your followers:
Expand Down

0 comments on commit 73b24aa

Please sign in to comment.