https://github.com/zekth/gh-deploy-action
Deploy anything to Github branches
https://github.com/zekth/gh-deploy-action
Last synced: 24 days ago
JSON representation
Deploy anything to Github branches
- Host: GitHub
- URL: https://github.com/zekth/gh-deploy-action
- Owner: zekth
- License: mit
- Created: 2019-10-13T17:00:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T17:07:17.000Z (over 6 years ago)
- Last Synced: 2024-03-15T10:22:39.292Z (about 2 years ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-deploy-action
Completely inspired by https://github.com/maxheld83/ghpages
## Usage
Env variables:
- **dir** : Directory to deploy. Default is `./`
- **gh_token** : Personnal access token. [Create one](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line)
- **fqdn** : Creating a CNAME file in the target with the input. Also does domain name regex validation
- **target_branch** : Target branmch where to deploy. Default : `gh-pages`
```yaml
- name: GitHub Pages Deploy
if: github.ref == 'refs/heads/master'
uses: zekth/gh-deploy-action@1.0.0
with:
dir: dist
gh_token: ${{ secrets.GH_TOKEN }}
fqdn: foo.bar.com
target_branch: staging
```