1.3.4 • Published 2 months ago

git-deploy-gh-pages v1.3.4

Weekly downloads
1
License
MIT
Repository
github
Last release
2 months ago

git-deploy-gh-pages

Yet another script to deploy to gh-pages. Also deploys PRs to subdirectory.

Behavior

  • Validates config
  • Detects current remote
  • Detects PR environment (in GitHub Actions)
  • Builds app
  • Clones current gh-pages branch
  • Removes all files
  • Copies new files to gh-pages
    • Uses pr/number subdirectory for PRs.
  • If any changes
    • Commit
    • Push

Configuration

Requires a .gh-pages containing valid json specifying buildCommand. Other defaults that can be overridden are:

{
	commitMessage: 'Deploy #PR to GitHub Pages.',
	branch: 'gh-pages',
	stagingDirectory: 'gh-pages-staging',
};

#PR will be replaced with "PR #X" if in the PR environment.

Identity

Runs git config if both GH_USER_NAME and GH_USER_EMAIL env variables are set.

1.3.4

2 months ago

1.3.3

3 months ago

1.3.2

3 months ago

1.3.1

3 months ago

1.3.0

3 months ago

1.2.0

2 years ago

1.1.4

2 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

5 years ago