deploy

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config) error

Run executes the deployment based on the config settings

Types

type Deployer

type Deployer interface {
	Deploy(cfg *config.Config) error
}

Deployer defines the interface that all deployment backends must implement

type GithubDeployer

type GithubDeployer struct{}

GithubDeployer deploys the built site to GitHub Pages using git force-push

func (*GithubDeployer) Deploy

func (d *GithubDeployer) Deploy(cfg *config.Config) error

Deploy runs the Git commands to deploy the public folder to the configured repo and branch

type S3Deployer

type S3Deployer struct{}

S3Deployer deploys the built site to AWS S3 or S3-compatible object storage

func (*S3Deployer) Deploy

func (d *S3Deployer) Deploy(cfg *config.Config) error

Deploy walks the public output directory and uploads all files to the configured S3 bucket

type SFTPDeployer

type SFTPDeployer struct{}

SFTPDeployer deploys the built site using SFTP or FTP

func (*SFTPDeployer) Deploy

func (d *SFTPDeployer) Deploy(cfg *config.Config) error

Deploy routes the connection to either deploySFTP or deployFTP depending on the deploy type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址