https://github.com/drone-plugins/drone-gh-pages
Drone plugin for publishing to GitHub Pages
https://github.com/drone-plugins/drone-gh-pages
drone drone-plugin
Last synced: 4 months ago
JSON representation
Drone plugin for publishing to GitHub Pages
- Host: GitHub
- URL: https://github.com/drone-plugins/drone-gh-pages
- Owner: drone-plugins
- License: apache-2.0
- Created: 2016-04-13T00:49:29.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T10:54:26.000Z (about 3 years ago)
- Last Synced: 2024-06-20T12:36:57.433Z (almost 2 years ago)
- Topics: drone, drone-plugin
- Language: Go
- Homepage: http://plugins.drone.io/drone-plugins/drone-gh-pages
- Size: 625 KB
- Stars: 14
- Watchers: 9
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-gh-pages
[](http://harness.drone.io/drone-plugins/drone-gh-pages)
[](https://join.slack.com/t/harnesscommunity/shared_invite/zt-y4hdqh7p-RVuEQyIl5Hcx4Ck8VCvzBw)
[](https://community.harness.io)
[](https://stackoverflow.com/questions/tagged/drone.io)
[](http://godoc.org/github.com/drone-plugins/drone-gh-pages)
[](https://goreportcard.com/report/github.com/drone-plugins/drone-gh-pages)
Drone plugin for publishing static website to GitHub Pages. For the usage information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/drone-plugins/drone-gh-pages/).
## Build
Build the binary with the following command:
```console
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
go build -v -a -tags netgo -o release/linux/amd64/drone-gh-pages
```
## Docker
Build the Docker image with the following command:
```console
docker build \
--label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
--label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
--file docker/Dockerfile.linux.amd64 --tag plugins/gh-pages .
```
## Usage
```console
docker run --rm \
-e PLUGIN_USERNAME="octocat" \
-e PLUGIN_PASSWORD="p455w0rd" \
-e PLUGIN_PAGES_DIRECTORY="docs" \
-e DRONE_COMMIT_AUTHOR="Drone" \
-e DRONE_COMMIT_AUTHOR_EMAIL="drone@example.com" \
-e DRONE_REMOTE_URL="https://github.com/drone-plugins/drone-docker.git" \
-e DRONE_WORKSPACE="$(pwd)" \
-v $(pwd):$(pwd) \
-w $(pwd) \
plugins/gh-pages
```