- Notifications
You must be signed in to change notification settings - Fork6
jeoy/github-deploy-actions
Use this GitHub action with your project
Add this Action to an existing workflow or create a new oneFolders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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.
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
| param | description | required | default |
|---|---|---|---|
| COMMIT_NAME | The name who commit this deployment | false | ${GITHUB_ACTOR} |
| COMMIT_EMAIL | The email who commit this deployment | true | - |
| ACCESS_TOKEN | github token can acess repo | true | - |
| BASE_BRANCH | The branch you want to build | false | master |
| DEPLOY_BRANCH | The branch you want to deploy | false | gh-pages |
| BUILD_SCRIPT | e.g.npm install && npm run build | true | - |
| FOLDER | The folder generated by build script | true | - |
When push tomaster branch
This Action will runyarn && yarn build
Then pushbuild folder as a new commit ongh-pages branch
note: mark sure
buildfolder is on your gitignore list
checkout thisentrypoint.sh
About
This action will auto deploy to target branch when it get triggered
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.