GitXplorerGitXplorer
r

git-deploy-gh-pages

public
0 stars
1 forks
1 issues

Commits

List of commits on branch master.
Unverified
e57801b28196e2f5a22df5153e0c10ea52bb6bc9

Publish 1.4.1

rrandymarsh77 committed 2 months ago
Unverified
9a6bdf8065167dc964c85d80aee5d0cae59e9da7

Use cross-platform compatible flag for mkdir.

rrandymarsh77 committed 3 months ago
Unverified
8b9592163c4e5ac5bacfd13413a984c80b270921

Cleanup closed PR deployments.

rrandymarsh77 committed 3 months ago
Unverified
8da7368af46ff6c93b9aa74d447e3cf6188aa034

Copy expected files on Linux.

rrandymarsh77 committed 3 months ago
Unverified
437232c1dabf2293a47510650f9e7c1b6310f3b8

Avoid ESM (for consumers on old tooling).

rrandymarsh77 committed 3 months ago
Unverified
4c902627e3166144a71111530915eae932db5ee7

Publsih 1.3.2

rrandymarsh77 committed 3 months ago

README

The README file for this repository.

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.