The bmannconsulting.com website

tags:

  • howto

[[Surfer]] has a CLI tool that can be installed to automate publishing as part of [[Github Actions]] or other CI/CD workflows.

You can setup your CI/CD to automatically push static files to surfer using the CLI as follows:

  • First, create an Access Token in surfer from the Settings menu.
  • Install the surfer cli tool as part of the CI/CD pipeline.
  • Push the artifacts (dist/ in the example below):
surfer put --token api-7e6d90ff-5825-4ebe-a85b-a68795055955 --server surfer.cloudron.