Skip to content

Commit 388ff8e

Browse files
committed
Merging
2 parents 5d5f1c0 + 157d0a2 commit 388ff8e

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM node:10
22

3-
LABEL "com.github.actions.name"="Deploy to Github Pages"
4-
LABEL "com.github.actions.description"="This action will handle the building and deploying process of your project to Github Pages."
3+
LABEL "com.github.actions.name"="Deploy to GitHub Pages"
4+
LABEL "com.github.actions.description"="This action will handle the building and deploying process of your project to GitHub Pages."
55
LABEL "com.github.actions.icon"="git-commit"
6-
LABEL "com.github.actions.color"="#192022"
6+
LABEL "com.github.actions.color"="orange"
77

88
LABEL "repository"="http://github.com/JamesIves/gh-pages-github-action"
99
LABEL "homepage"="http://github.com/JamesIves/gh-pages-gh-action"

README.md

+16-13
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
# Github Pages Deploy Action :rocket:
1+
# GitHub Pages Deploy Action :rocket:
22

3-
This Github action will handle the building and deploying process of your project to Github pages. It can be configured to upload your production ready code into any branch you'd like, including `gh-pages` and `docs`.
3+
[![View Action](https://img.shields.io/badge/view-action-blue.svg)](https://github.com/marketplace/actions/deploy-to-github-pages) [![Issues](https://img.shields.io/github/issues/JamesIves/github-pages-deploy-action.svg)](https://github.com/JamesIves/github-pages-deploy-action/issues)
4+
5+
This [GitHub action](https://github.com/features/actions) will handle the building and deploying process of your project to [GitHub Pages](https://pages.github.com/). It can be configured to upload your production ready code into any branch you'd like, including `gh-pages` and `docs`.
46

57
## Getting Started :airplane:
6-
Before you get started you must first create a fresh branch where the action will deploy the files to. You can replace `gh-pages` with whatever branch you'd like to use below. This will create a new orphaned branch which is what Github Pages require.
8+
Before you get started you must first create a fresh branch where the action will deploy the files to. You can replace `gh-pages` with whatever branch you'd like to use in the example below.
79

810
```git
911
git checkout --orphan gh-pages
@@ -14,34 +16,35 @@ git commit -m 'Initial gh-pages commit'
1416
git push origin gh-pages
1517
```
1618

17-
Once setup you can then include the action in your workflow to trigger on any built in event that Github supports.
19+
Once setup you can then include the action in your workflow to trigger on any event that [GitHub actions](https://github.com/features/actions) supports.
1820

1921
```
20-
action "Deploy to Github Pages" {
22+
action "Deploy to GitHub Pages" {
2123
uses = "JamesIves/github-pages-deploy-action@master"
2224
env = {
2325
BUILD_SCRIPT = "npm install && npm run-script build"
2426
BRANCH = "gh-pages"
2527
FOLDER = "build"
26-
COMMIT_EMAIL = "github-pages-deployer@jamesives.dev"
27-
COMMIT_NAME = "Github Pages Deployer"
28+
COMMIT_EMAIL = "github-pages-deployer@jives.dev"
29+
COMMIT_NAME = "GitHub Pages Deployer"
2830
}
2931
secrets = ["ACCESS_TOKEN"]
3032
}
3133
```
3234

3335
## Configuration 📁
3436

35-
The `secrets` and `env` portion of the workflow must be configured before the action will work. Below you'll find a description of each one does.
37+
The `env` portion of the workflow **must** be configured before the action will work. Below you'll find a description of what each one does.
3638

3739
| Key | Value Information | Required |
3840
| ------------- | ------------- | ------------- |
39-
| `ACCESS_TOKEN` | You must provide the action with a GitHub personal access token in order to trigger GitHub pages to rebuild your page. This is set in the `secrets` area of the workflow editor. | **No** |
40-
| `BUILD_SCRIPT` | If you require a build script to compile your code prior to pushing it you can add the script here. The Docker container which powers the action runs Node which means `npm` commands are valid. If you're using a static site generator I'd suggest building the code prior to pushing it. | **No** |
41+
| `BUILD_SCRIPT` | If you require a build script to compile your code prior to pushing it you can add the script here. The Docker container which powers the action runs Node which means `npm` commands are valid. If you're using a static site generator such as Jekyll I'd suggest compiling the code prior to pushing it to your base branch. | **No** |
4142
| `BRANCH` | This is the branch you wish to deploy to, for example `gh-pages` or `docs`. | **Yes** |
4243
| `BASE_BRANCH` | The base branch of your repository which you'd like to checkout prior to deploying. This defaults to `master`. | **No** |
43-
| `FOLDER` | The folder in your repository that you want to deploy. If your build script compiles into a directory named `build` you'd put it in here. | **Yes** |
44-
| `COMMIT_NAME` | Used to sign the commit, this should be your name. | **No** |
45-
| `COMMIT_EMAIL` | Used to sign the commit, this should be your email. | **No** |
44+
| `FOLDER` | The folder in your repository that you want to deploy. If your build script compiles into a directory named `build` you'd put it here. | **Yes** |
45+
| `COMMIT_NAME` | Used to sign the commit, this should be your name. Defaults to `gh-pages-deploy@jives.dev` | **No** |
46+
| `COMMIT_EMAIL` | Used to sign the commit, this should be your email. Defaults to `GitHub Pages Deployer` | **No** |
47+
48+
With the action correctly configured you should see something similar to this in your GitHub action workflow editor.
4649

4750
![Example](screenshot.png)

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cd $GITHUB_WORKSPACE && \
2424
# Configures Git and checks out the base branch.
2525
git init && \
2626
git config --global user.email "${COMMIT_EMAIL:-gh-pages-deploy@jives.dev}" && \
27-
git config --global user.name "${COMMIT_NAME:-Github Pages Deploy}" && \
27+
git config --global user.name "${COMMIT_NAME:-Github Pages Deployer}" && \
2828
git checkout "${BASE_BRANCH:-master}" && \
2929

3030
# Builds the project if applicable.

0 commit comments

Comments
 (0)