https://github.com/x-actions/git-push
A Github Action to push code to git, like gitpage.
https://github.com/x-actions/git-push
actinos github githubactions gitpages
Last synced: 29 days ago
JSON representation
A Github Action to push code to git, like gitpage.
- Host: GitHub
- URL: https://github.com/x-actions/git-push
- Owner: x-actions
- License: apache-2.0
- Created: 2020-01-22T03:30:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-25T12:27:07.000Z (over 2 years ago)
- Last Synced: 2025-03-28T14:37:14.436Z (4 months ago)
- Topics: actinos, github, githubactions, gitpages
- Language: Shell
- Homepage:
- Size: 31.3 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Push Action
A Github Action to push code to git, like [`gitpage`](https://pages.github.com/).
## Environment Variables
- GITHUB_EMAIL: git user email
- GITHUB_USERNAME: git user username
- PUBLISH_REPO: repo url, `https://${{ secrets.GitHub_PAT }}@github.com/owner/repo.git`
- PUBLISH_BRANCH: git branch
- PUBLISH_DIR: dir to publish## Secrets
- DEPLOY_PRIVATE_KEY: Required your deploy key which has Write access[not use]
## How to Use
```
- name: Push to Github
uses: x-actions/gh-pages@release/v1
env:
GITHUB_EMAIL: "[email protected]"
GITHUB_USERNAME: "xiexianbin"
PUBLISH_REPO: https://${{ secrets.GitHub_PAT }}@github.com/owner/repo.git
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
# DEPLOY_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
```