Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.3 KB

docs.md

File metadata and controls

30 lines (26 loc) · 1.3 KB
name authors icon description tags containerImage containerImageUrl url
Surge preview plugin
Woodpecker Authors
Plugin to create static pages deployments as preview environments on pull-requests.
publish
cdn
preview
woodpeckerci/plugin-surge-preview

The surge-preview plugin uploads a files of a directory to the CDN of surge.sh it automatically generates an url and posts the status of the deployment with an url as a comment to the pull-request. After closing a pull-request it automatically destroys the preview environment again.

Usage

To use the plugin add a step similar to the following one to your Woodpecker pipeline config:

pipeline:
  preview:
    image: woodpeckerci/plugin-surge-preview
    settings:
      path: dist/ # path to directory to publish files from
      surge_token: xxx # install surge cli and run `surge token`: https://surge.sh/help/getting-started-with-surge
      forge_type: github # or gitea, gitlab, ...
      forge_url: https://github.com # or https://codeberg.org, https://gitlab.com, ...
      forge_repo_token: xxx # access token for your forge
    when:
      event: pull_request