Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This action will auto deploy to target branch when it get triggered

NotificationsYou must be signed in to change notification settings

jeoy/github-deploy-actions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

This action will auto build and deploy to target branch when it get triggered.

Also it can preserve the history of gh-pages and convenient for rolling back toprevious version.

And it will compare deployment file to previous version by usinggit status --porcelain, it will not to deploy if nothing change.

How to Use

name:deployon:push:branches:            -masterjobs:build-and-deploy:runs-on:ubuntu-lateststeps:            -name:Checkoutuses:actions/checkout@master            -name:Build and Deployuses:./.github/actions/deployenv:COMMIT_EMAIL:jeoy_z@126.comCOMMIT_NAME:jeoyACCESS_TOKEN:${{ secrets.ACCESS_TOKEN }}BASE_BRANCH:masterDEPLOY_BRANCH:gh-pagesBUILD_SCRIPT:yarn && yarn buildFOLDER:build

Environment variable

paramdescriptionrequireddefault
COMMIT_NAMEThe name who commit this deploymentfalse${GITHUB_ACTOR}
COMMIT_EMAILThe email who commit this deploymenttrue-
ACCESS_TOKENgithub token can acess repotrue-
BASE_BRANCHThe branch you want to buildfalsemaster
DEPLOY_BRANCHThe branch you want to deployfalsegh-pages
BUILD_SCRIPTe.g.npm install && npm run buildtrue-
FOLDERThe folder generated by build scripttrue-

How It Works

When push tomaster branch

This Action will runyarn && yarn build

Then pushbuild folder as a new commit ongh-pages branch

note: mark surebuild folder is on your gitignore list

deploy page:

gh-pages demo

what exactly is done during the action

checkout thisentrypoint.sh

About

This action will auto deploy to target branch when it get triggered

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp